Questions tagged [graphs]

For the nodes and links sense of graph; use the visualization tag for the charting sense.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

I want to create a network graph with multiple features on python

I have a dataframe of stock tickers which have a few features. Below is the dataframe: Currently I am using networkx and pyvis to create network graphs. At the moment, I'm only able to use either one ...
user avatar
  • 1
0 votes
0 answers
8 views

Multi-attribute pandas data frame to a weighted network - how to manage attribute values as weights?

I have a pandas data frame that includes n rows, indicating people, with m columns, indicating a number of attributes that they've been rated on (fictitious working example here). The data frame looks ...
user avatar
  • 101
1 vote
1 answer
34 views

Building a graph out of a large text corpus

I'm given a large amount of documents upon which I should perform various kinds of analysis. Since the documents are to be used as a foundation of a final product, I thought about building a graph out ...
user avatar
2 votes
0 answers
27 views

Task of regression on graphs

Which tools are available to extract features from a graph. After that, I would like to perform regressions on those features. Initially, I was thinking about using the adjacency matrix of the graph. ...
user avatar
0 votes
0 answers
6 views

How can I store sources, effective dates, and confidence for every property in a knowledge graph?

What I am wanting to do is ensure that every property in a knowledge base comes from at least one source. I would like to ensure that every edge is spawned (or at least explained) by some event, like ...
user avatar
  • 101
0 votes
0 answers
9 views

Growth Edge in Link Prediction

I have 2 CSV files representing edge in social networks in 2 consecutive generations. I am trying to predict future edges. My initial tough is to train a linear regression on the first generation with ...
user avatar
0 votes
0 answers
54 views

Why is sliding window evaluation important in time series analysis?

I have been working dynamic graph neural newtork survey, and what I realized is that all of the well known paper (from pretegious university) do not use sliding window evaluation on dynamic graph ...
user avatar
0 votes
0 answers
8 views

Semi supervised learning on graphs

I have the following semi-supervised problem: ...
user avatar
3 votes
3 answers
195 views

How to perform inductive train/test split for GraphSAGE classification

Let's say I have a network that consists of a single weakly connected component. From various papers I've seen that if you want to use inductive GNNs like GraphSAGE, it is advisable to split your ...
user avatar
2 votes
0 answers
10 views

Probability distributions for Directed Cyclic Graphs

Given a directed cyclic graph where vertex A is 'infected', and there are different infection probabilities between each node, what is the best approach towards computing the conditional probability $...
user avatar
0 votes
0 answers
32 views

Facing problem on X-axis and Y-axis in VS Code

Helow everyone. I am facing a problem on x axis and y axis. when i got the output then the output plot look like as,, The problem is output plot do not show the x-axis label and y axis label. Please ...
user avatar
  • 1
0 votes
0 answers
18 views

How to find union of nodes in rdflib knowledge graph

Little background on Work : I am working with ontologies and for my usecase I have to apply random walk on the ontology nodes/entities. In order to do the same I have written one function - that given ...
user avatar
  • 141
0 votes
1 answer
9 views

Algorithms for Vertex or Node Correspondence

Given a graph G, and another graph with the same number of vertices G’, one can define a vertex correspondence function f, from the vertex set of G to the vertex set of G’. The correspondence function ...
user avatar
0 votes
0 answers
35 views

How to unify weights in my dataset

I have a symptom-disease network that consists of four attributes: symptom, disease, co-occurrence and TF-IDF. I'm considering the TF-IDF attribute as the weight of my network edges and symptom and ...
user avatar
0 votes
0 answers
19 views

Clustering on a graph with weighted edges

I have a graph with V nodes and E edges. Each edge e has a value -1 < e_v < +1, when -1 means these two nodes are VERY different and +1 means they are very similar. The graph is un-directed and ...
user avatar
0 votes
0 answers
18 views

Community detection for selected nodes

I'm new to graph theory and reached a point of doing community detection successfully.My next problem is to perform a community detection for specific nodes on the network (dividing set of nodes on ...
user avatar
0 votes
0 answers
11 views

Tableau - Filter Buttons not filtering correctly

I created filter buttons to use as a filter for 6 category's (measures) in Tableau Public (latest version) so when you click on them the values for each display on my "Military Enrollment By ...
user avatar
  • 1
1 vote
0 answers
19 views

Predicting the amount of new nodes discovered if a known node is extended in a graph

I'm currently working on a problem relating to Discord servers (sort of like a group chat within a social media platform), where I have a program recursively joining servers, looking for invites, and ...
user avatar
2 votes
0 answers
34 views

Graph legend for plot in Base R for class differentiated data gives incorrect representation of actual category

I am new to R. While working on my university assignments, I found that legends for Base R plot do not show correct information, hence I switched to ggplot2 wherever legends were needed. I observed ...
user avatar
  • 21
2 votes
1 answer
27 views

Return the gradient and y intercept (m, b) to create two lines to best fit the data

I have been working on this task for a few hours now and have been unsuccessful with getting the target result. I have tried using multiple methods of trying to split the dataset using different ...
user avatar
  • 21
0 votes
0 answers
30 views

What is the name of the knowledge visualisation that shows independent paths which occasionally converge at certain points? (photo inside)

If I had Data that looked like this: ...
user avatar
  • 1
1 vote
0 answers
26 views

Graph Pattern Matching Library

Assume that in an application, the user gives us a graph and we want to consider it as a pattern and find all occurrences of the pattern in a graph database (like neo4j). If we knew what the pattern ...
user avatar
  • 111
0 votes
0 answers
12 views

Graph partitioning in ML with defining a cost function

I have an unweighted directed graph and I am searching in ML for an algorithm to divide this graph into subgraphs. I do my research and I found that most of the algorithms depend on the minimum cut. I ...
user avatar
0 votes
0 answers
36 views

Using MySQL Common Table Expressions to solve the travelling salesman problem

The problem I'm trying to solve is very similar to the travelling salesman problem, where there are many paths between nodes in the database. I've tried to edit my example to fit into this well-known ...
user avatar
  • 101
0 votes
0 answers
44 views

How to draw Reward vs Episode Graph

I have just started learning reinforcement learning and I was following some tutorials on youtube. I found out out that no one was explaining how to draw reward vs episode graph. So I concluded that ...
user avatar
  • 1
1 vote
0 answers
31 views

weakly connected (or disconnected) graph enhancement

I'm trying to model a collection of security alerts into graph representation. Each alert consists of 0 or more objects that represent IP addresses, users, hostnames and so on. I consider two objects ...
user avatar
0 votes
0 answers
6 views

Obtaining multiple DAGs from Observational Data

I wish to obtain the most probable set of DAGs created from observational data and then compare them using my own score function. Ideally, I would want to give the observational data and then the ...
user avatar
  • 1
1 vote
0 answers
10 views

Node embeddings and densely connected graphs

I have a dataset of users and their interests (represented by categories) and I’m trying to embed the graph which results from connecting users if they have a common interest, so I’ll add an edge for ...
user avatar
1 vote
1 answer
95 views

Is there a metric for "cliquiness" for social graphs?

Regarding social network graphs, let us say that I am connected to 10 people, and that each of them are connected to 10 people. At one extreme this means that I have 100 unique $2^{nd}$ degree ...
user avatar
  • 111
0 votes
0 answers
38 views

Tensorflow Model permanently becomes corrupt when input embeddings exceed max_position_embeddings

I use Tensorflow C++ API. I have a Tensorflow model. I give some inputs to this model. There is a parameter called max_position_embeddings This parameter determines maximum acceptable input dimensions ...
user avatar
  • 101
0 votes
0 answers
25 views

wasserstein distance between two different histograms

I turn a directed labeled graph to histogram. for example if there is one node with label 'a', one with 'b' and two edges between them with label 'x', I turned it to axb and it's value is 2: H('axb')=...
user avatar
0 votes
0 answers
11 views

Which kind of technique is used for classifying a graph datastructure?

I have a 3D surface from which I extract certain spatial parameters like extremas and their locations (a.k.a coordinates), which then I convert into a bipartite graph with distance between them as ...
user avatar
1 vote
2 answers
21 views

Low-dimensional path representation learning

I have a graph (ex: map) and multiple sequences of ids representing different paths. A vertex represents a region/area An edge between 2 vertices : a crossing from a region to another A graph path (...
user avatar
0 votes
0 answers
23 views

Building a recommendation system with a graph database

When I'm reading about building recommendation systems with collaborative filtering and they generally don't talk about graph databases like neo4j. Are graph databases enough to implement the best ...
user avatar
  • 101
0 votes
0 answers
15 views

Node eigenvector centrality

I recently started using networkx and i have the folowing problem. I have a weighted graph: Each node have a weight and represent a person Nodes are interlinked with weighted edges I would like to ...
user avatar
  • 43
0 votes
1 answer
135 views

How to model a 3D graph into a vector so that I can feed it into a classification algorithm?

I have a 3D graph like below: Ref: google images It has 2 angles as X and Y and the Z axis is amplitude value (Each 3D graph is representing a pixel). I want to model this into some useful data ...
user avatar
1 vote
0 answers
37 views

How to create a graph network (Networkx) from the solution of Ordinary differential equations?

I have a list of Nodes. Suppose, N =["1","2","3","4"] # there can be different number of nodes And I have solved the ...
user avatar
2 votes
1 answer
174 views

Negative sampling for graph representation learning

I was watching a lecture about graph representation learning (from here) and got a little bit confusing about how they define the negative samping procedure. In the presentation J. Leskovec briefly ...
user avatar
0 votes
1 answer
95 views

What does my learning curve indicate?

I have performed logistic regression. And I am getting an accuracy of 77% with my current model. I divided my training set into cross validation set and train set. And I plotted a learning curve (...
user avatar
2 votes
0 answers
68 views

Is there a node embedding method that is portable between graphs?

I have several graphs whose nodes I want to encode to later process them with a neural network. I want the embeddings to take into account the topology of the graph around the nodes I am embedding, ...
user avatar
0 votes
2 answers
214 views

Data Analytics how to read ECDF graph

Hi there, My question is about how to read ECDF graphs. I am still quite unsure what the jumps / zig-zags in the graph mean and what is happening when there is a horizontal line and so on. I would be ...
user avatar
1 vote
1 answer
34 views

Stacked Bar Chart in R

I wondered if someone could help with a re-labelling 'fill' variables ' and the x-axis on a stacked bar chart please? My ambition is to: Express the fill variable(s) as of six domains in the health ...
user avatar
  • 193
1 vote
1 answer
25 views

Seeding a graph to simulate effect of a vaccine on disease spread

I am modeling an Independent cascade model in graph diffusion, by simulating a disease. I have an undirected graph, and I need to choose 50 nodes to vaccinate before the disease starts spreading, and ...
user avatar
  • 111
0 votes
0 answers
511 views

seaborn heatmap - x axis - repeated values

I'm in trouble creating a heatmap using a CSV file. csv data is in a format like below here is a code ...
user avatar
0 votes
1 answer
3k views

Plot a training/validation curve in Pytorch Training [closed]

I have the following training method and I'm confused how may I modify the code to plot a training and validation curve history graph with matplotlib ...
user avatar
0 votes
1 answer
46 views

What is the difference between causal discovery and inverse modeling?

I do not see these words used interchangeably, but they seem to be similar. In inverse modeling we are trying to find causal factors given an effect. In causal discovery, we are also looking for ...
user avatar
1 vote
1 answer
53 views

How to plot multiple bar charts with different infill and outline?

I have the CSV's of data. I want to plot the distribution of every attribute or a single one to compare the distribution from other CSV's, Since all attributes are the same but the distribution is ...
user avatar
  • 219
1 vote
1 answer
73 views

How do I calculate the accuracy for graph mining in terms of (top 1%)?

I have 3600 samples in my dataset. I split the dataset into the train (2700) and test (900). My problem is related to ...
user avatar
0 votes
2 answers
27 views

How to do node classification without deep learning?

I have a dataset of coordinates with labels, a set of those coordinates (a graph) follows globally the same pattern. ie : I have coordinates of eyes,mouth and nose on thousands of images. A graph can ...
user avatar
1 vote
0 answers
12 views

Constructing a Weighted Random Graph [closed]

I want to create a weighted random graph (in contrast to the unweighted Erdős–Rényi model). I have a list of weights (derived from a real-world network, very skewed distribution that most weights are ...
user avatar

1
2 3 4 5