Created
September 23, 2018 12:45
-
-
Save NMZivkovic/b3b47d57e0ed77956c5a1551113a58a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
from sklearn.preprocessing import MinMaxScaler | |
data = pd.read_csv('Credit_Card_Applications.csv') | |
X = data.iloc[:, :-1].values | |
y = data.iloc[:, -1].values | |
sc = MinMaxScaler(feature_range = (0, 1)) | |
X = sc.fit_transform(X) | |
from somtf import SOM | |
som = SOM(x = 10, y = 10, input_dim=15, learning_rate=0.5, num_iter = 100, radius = 1.0) | |
som.train(X); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment