Skip to content

Instantly share code, notes, and snippets.

Created September 23, 2018 12:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment