Skip to content

Instantly share code, notes, and snippets.

View Orbifold's full-sized avatar
🍀
Happy. Thinking. Understanding.

Francois Vanderseypen Orbifold

🍀
Happy. Thinking. Understanding.
View GitHub Profile
@Orbifold
Orbifold / Forecasting.ipynb
Last active April 19, 2024 17:33
A tutorial notebook on forecasting time series with R.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Orbifold
Orbifold / GraphSageLinkPrediction.ipynb
Last active March 26, 2024 06:30
Using GraphSage for link predictions. So much fun.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Orbifold
Orbifold / rsa.py
Created July 20, 2018 17:11
RSA mechanics with pycryptodome
#========================================
# create public and private keys
#========================================
from Crypto.PublicKey import RSA
key = RSA.generate(2048)
private_key = key.exportKey()
with open("./private.pem", "wb") as f:
@Orbifold
Orbifold / Cora.ipynb
Last active July 2, 2023 08:57
Cora explorations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Orbifold
Orbifold / Feedforward.ipynb
Created November 25, 2016 09:47
Feedforward examples using Keras.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Orbifold
Orbifold / Cora.nb
Last active July 1, 2023 04:34
Loading the Cora dataset and using black-box Wolfram machine learning to predict edges.
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 12.3' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
@Orbifold
Orbifold / ZeppelinPlot.py
Created November 17, 2016 07:08
Zeppelin plotly example.
# if needed, install plotly via shell like so
%sh pip install plotly
#---
%pyspark
import plotly
import numpy as np
from plotly.graph_objs import Scatter, Layout
@Orbifold
Orbifold / Keras hello world.md
Created September 1, 2018 06:04
Keras hello world

Using Keras (now part of TensorFlow) is really easy. The complexity comes when you deal with large amounts of data figuring out the topology of a neural network. With the topology comes hyperparameter tuning and all that. It's a bit like painting: it's easy to hold a brush but it takes years to paint something worth looking at.

	import tensorflow as tf
	from tensorflow.keras.models import Sequential
	from tensorflow.keras.layers import Dense
@Orbifold
Orbifold / talk_to_neo4j.js
Created March 5, 2023 10:42
Less than 100 lines to talk to your Neo4j graph
require('dotenv').config()
const { Configuration, OpenAIApi } = require("openai");
const neo4j = require('neo4j-driver')
const driver = neo4j.driver(process.env.NEO4JURI, neo4j.auth.basic(process.env.NEO4JUSER, process.env.NEO4JPASSWORD))
const session = driver.session({ database: "biodb" })
const configuration = new Configuration({
apiKey: process.env.OPENAI_API_KEY
});
const openai = new OpenAIApi(configuration);
let isConfidential = false;
@Orbifold
Orbifold / DrkgSchemaAndDataImport.ipynb
Created February 9, 2022 11:00
DRKG Schema and Data Import script.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.