Skip to content

Instantly share code, notes, and snippets.

View subpath's full-sized avatar
🇩🇪

Alexander Osipenko subpath

🇩🇪
View GitHub Profile
@subpath
subpath / Simple polynomial regression for single feature in Python
Created October 14, 2015 17:35
Simple polynomial regression for single feature in Python
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This is an example of simple polynomial regression for single feature.\n",
"As a dataset I'm using calibration data of high pressure densitometer.\n",
"My goal was to make an equation, that's can decribe relationship between temperature and period of oscillation of densitometer's U-tube."
]
@subpath
subpath / Classification in Python
Created October 22, 2015 13:32
Classification in Python
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Example of Machine Learning classifications in Python"
]
},
{
@subpath
subpath / Titanic Kaggle Challenge
Created October 25, 2015 10:09
Titanic Kaggle Challenge
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##Kaggle Competition | Titanic: Machine Learning from Disaster\n",
"The competition's website is located on [Kaggle.com](https://www.kaggle.com/c/titanic)"
]
},
@subpath
subpath / Data preparation with pandas and numpy
Created November 6, 2015 17:15
Data preparation with pandas and numpy
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Data preparation with pandas and numpy"
]
},
{
@subpath
subpath / PostgreSQL_setup_instruction.md
Created July 13, 2018 07:04
PostgreSQL setup instruction

PostgreSQL setup instruction

Only for Ubuntu, because I use Ubuntu on

  1. Install postgreSQL:
sudo apt install postgresql postgresql-contrib
@subpath
subpath / Load_data_from_cryptocompare
Created August 9, 2018 15:37
Load data from cryptocompare API
import numpy as np
import pandas as pd
import requests
""
LOAD DATA
"""
def get_market_data(ticker):
"""
Ticker in format quote/base,
@subpath
subpath / Load_data_from_cryptocompare.py
Created August 9, 2018 15:39
Load data from cryptocompare API
import numpy as np
import pandas as pd
import requests
def get_market_data(ticker):
"""
Ticker in format quote/base,
for example 'BTC/USD'
return: pandas dataframe
@subpath
subpath / Custom_backtest_for_time_series.py
Created August 9, 2018 15:46
Custom backtest for Time Series model validation
import numpy as np
import pandas as pd
import requests
from sklearn.linear_model import BayesianRidge
#load market data
market_data = get_market_data('BTC/USD')
#shift target variable one day back
#in order to train model to predict one day into future
@subpath
subpath / SimpleGAN.py
Created August 14, 2018 06:22
Simple GAN with Keras
import numpy as np
from keras.datasets import mnist
from keras.layers import Input, Dense, Reshape, Flatten, Dropout
from keras.layers import BatchNormalization
from keras.layers.advanced_activations import LeakyReLU
from keras.models import Sequential
from keras.optimizers import Adam
from logger import logger
import matplotlib.pyplot as plt
@subpath
subpath / tSNE_and_word2vec_visualization.ipynb
Created August 15, 2018 11:05
Visualization of word similarity with t-SNE and word2vec
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.