in - Data Science

How to transfer a Python graph to a Neo4j graph

Data concerning publications found on the data.world website Data concerning the Olympic winter sport competitions found in the data.world website Music data found in kaggle website The objective here is to generate the csv files which will represent the corpus...

in - Data Science

How to transfer a Neo4j graph to a Python graph

Neo4j contains libraries such as GDS and APOC which allow the use of already existing advanced methods and algorithms. But if that’s not enough, in this jupyter notebook, I want to show that we can get the results of Cypher...

in - Machine Learning

How to do node classification and choose important features

import networkx as nx import numpy as np import pandas as pd import os import stellargraph as sg from stellargraph.mapper import GraphSAGENodeGenerator from stellargraph.layer import GraphSAGE from tensorflow.keras import layers, optimizers, losses, metrics, Model from sklearn import model_selection from sklearn.utils...

in - Machine Learning

Multi-armed bandits

Introduction The objective of this lab session is to test the performance of some usual bandit algorithms. import numpy as np import matplotlib.pyplot as plt Algorithms There are \(k\) possible actions, \(a \in \{ 0, 1,...,k - 1\}\). We consider...