### Stacking in Trident 1.1 [Stroke_Prediction.csv]

May 9, 2020

090520201852 Someone recently told me that I do not write enough so I will write: It is very nice when we have AUC of 85%. […]

### Perfect model: Random forest classifier (1)

March 23, 2020

part 1: Determining the depth of trees by visualization using visualization¶ 230320201052   In [1]: import numpy as np import matplotlib.pyplot as plt import seaborn as […]

### How to use PCA in logistic regression?

March 23, 2020

230320200907 Principal component analysis (PCA) https://jakevdp.github.io/PythonDataScienceHandbook/05.08-random-forests.html https://www.geeksforgeeks.org/principal-component-analysis-with-python/ In [1]: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt df= […]

### Part. 2 How to improve the classification model? Principal component analysis (PCA)

March 20, 2020

200320200904 In this case, the method did not improve the model. However, there are models in which the PCA method is a very important reason […]

### Feature Selection Techniques – Random Forest Classifier

March 20, 2020

200320200724 In [1]: import pandas as pd df = pd.read_csv(‘/home/wojciech/Pulpit/1/kaggletrain.csv’) df = df.dropna(how=’any’) df.dtypes Out[1]: Unnamed: 0 int64 PassengerId int64 Survived int64 Pclass int64 Name […]

### Part_7 Stroke_Prediction – Model Sieci neuronowych PyTorch Technika Osadzania

March 9, 2020

In [1]: import time start_time = time.time() ## pomiar czasu: start pomiaru czasu print(time.ctime()) Mon Mar 9 09:36:05 2020 In [2]: import torch import torch.nn as […]

### Part_1 Stroke_Prediction – Preparation of data for analysis

March 6, 2020

In [1]: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt df= pd.read_csv(‘c:/1/Stroke_Prediction.csv’) df.head(5) Out[1]: ID Gender Age_In_Days […]

### Part_6 Stroke_Prediction_Pytorch

March 6, 2020

http://sigmaquality.pl/models/classification/part_5-stroke_prediction-tensorflow/ In [1]: import torch from torch.autograd import Variable import torch.nn.functional as F import torch.utils.data as Data import matplotlib.pyplot as plt import numpy as np import […]

### Part_5 Stroke_Prediction – Tensorflow

March 6, 2020

Part_4 Stroke_Prediction – Modele klasyfikacji In [1]: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt df= pd.read_csv(‘c:/1/Stroke_Prediction_NUM.csv’) […]

### Part_4 Stroke_Prediction – Modele klasyfikacji

March 6, 2020

Part_3 Stroke_Prediction – Czy palenie przyczynia się do udaru mózgu W tej części przeprowadzę klasyfikację za pomocą modeli Model regresji logistycznej Random Forest Classifier Naive […]

### Part_3 Stroke_Prediction – Czy palenie przyczynia się do udaru mózgu

March 6, 2020

Protected: Part_2 Stroke_Prediction – Preparation of data for the classification process Analiza ONE-WAY ANOVA¶ In [1]: import pandas as pd import numpy as np import seaborn […]

### Part_2 Stroke_Prediction – Preparation of data for the classification process

March 6, 2020

Part_1 Stroke_Prediction – Preparation of data for analysis In [1]: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as […]

### Procedura 1 RandomForestClassifier

February 13, 2020

In [1]: from sklearn.datasets import load_breast_cancer from sklearn.feature_selection import RFECV from sklearn.model_selection import GridSearchCV from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier import pandas as […]

### Procedura 2 RandomForestClassifier

February 13, 2020

Procedura 2: RandomForestClassifier¶ In [1]: from sklearn.datasets import load_breast_cancer from sklearn.feature_selection import RFECV from sklearn.model_selection import GridSearchCV from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier import […]

### Pytorch MS Tytanic – Classification Example using a neural network with embedding

February 12, 2020

In [1]: import time start_time = time.time() ## pomiar czasu: start pomiaru czasu print(time.ctime()) Wed Mar 11 07:58:05 2020 In [2]: import torch import torch.nn as […]