Skip to content

Instantly share code, notes, and snippets.

@QuantumDamage
QuantumDamage / 013.ipynb
Created October 22, 2018 09:55
Nieco więcej o pozbywaniu się niepotrzebnych danych
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@QuantumDamage
QuantumDamage / 013.ipynb
Last active October 22, 2018 09:55
Nieco więcej o pozbywaniu się niepotrzebnych danych
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@QuantumDamage
QuantumDamage / 013.ipynb
Last active October 14, 2018 09:05
problem with eli5 module
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@QuantumDamage
QuantumDamage / entropia-calosc.ipynb
Created July 19, 2018 10:09
jakbadacdane.pl - entropia-calosc
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@QuantumDamage
QuantumDamage / entropia-dane.ipynb
Last active July 19, 2018 10:04
jakbadacdane.pl - entropia-dane
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@QuantumDamage
QuantumDamage / not-random-forest.ipynb
Last active July 5, 2018 13:07
Can I generate forest with the same trees?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@QuantumDamage
QuantumDamage / equations.tex
Last active June 12, 2018 13:14
Równania
Silhouette Coefficient
s = \frac{b - a}{\max\{a,b\}}
Zakres wartośći
s = \begin{cases}
1-a/b, & \mbox{jeśli } \,\,\,a < b \\
0, & \mbox{jeśli } \,\,\,a = b \\
b/a-1, & \mbox{jeśli } \,\,\,a > b \\
\end{cases}
@QuantumDamage
QuantumDamage / nbp.sh
Last active February 14, 2018 20:01
nbp1
# Java
sudo add-apt-repository ppa:webupd8team/java
# Enter
sudo apt-get update
sudo apt-get install oracle-java8-installer
# Enter
# Enter
# Yes
# Spark
import pandas as pd
import numpy as np
dataTrain = pd.DataFrame({'county': ['Cochice', 'Pima', 'Santa Cruz', 'Maricopa', 'Yuma']})
dummiesTrain = pd.get_dummies(dataTrain)
dataLive = pd.DataFrame({'county': ['Santa Cruz','Poznań', 'Pima']})
dummiesLive = pd.get_dummies(dataLive)
for pollutant in pollutants:
print pollutant
scores = []
inputData = oneHour[[pollutant, "lat", "long"]]
predictData = inputData[~pd.notnull(inputData[pollutant])]
trainData = inputData[pd.notnull(inputData[pollutant])]
X = trainData[["lat", "long"]]
y = trainData[pollutant]