You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System: Ubuntu 16.4
User: root
Python: 2
console:
`python adasyn.py
Loading creditcard.csv
test
starting...
adasyn.py:24: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here: http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
np.array(X_train.ix[:, X_train.columns != 'Class']),
pickling...
Traceback (most recent call last):
File "adasyn.py", line 28, in
with open('pickle/train_data_resampled.pkl', 'wb+') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'pickle/train_data_resampled.pkl'
`
SLOW so will just unpickle something that was run previously
with open('pickle/train_data_resampled.pkl', 'rb') as f:
X_train_resampled = pickle.load(f)
with open('pickle/train_data_labels_resampled.pkl', 'rb') as f:
X_train_labels_resampled = pickle.load(f)
`FileNotFoundError Traceback (most recent call last)
in
8 # np.array(X_train.Class))
9 # SLOW so will just unpickle something that was run previously
---> 10 with open('pickle/train_data_resampled.pkl', 'rb') as f:
11 X_train_resampled = pickle.load(f)
12 with open('pickle/train_data_labels_resampled.pkl', 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'pickle/train_data_resampled.pkl'`
The text was updated successfully, but these errors were encountered:
System: Ubuntu 16.4
User: root
Python: 2
console:
`python adasyn.py
Loading creditcard.csv
test
starting...
adasyn.py:24: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
np.array(X_train.ix[:, X_train.columns != 'Class']),
pickling...
Traceback (most recent call last):
File "adasyn.py", line 28, in
with open('pickle/train_data_resampled.pkl', 'wb+') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'pickle/train_data_resampled.pkl'
`
Jupyter notebook project.ipynb:
In[13]:
Resample the Training Data using ADASYN
The test data remains imbalanced
#from imblearn.over_sampling import ADASYN
#ada = ADASYN()
#data_resampled, data_labels_resampled = ada.fit_sample(
np.array(X_train.ix[:, X_train.columns != 'Class']),
np.array(X_train.Class))
SLOW so will just unpickle something that was run previously
with open('pickle/train_data_resampled.pkl', 'rb') as f:
X_train_resampled = pickle.load(f)
with open('pickle/train_data_labels_resampled.pkl', 'rb') as f:
X_train_labels_resampled = pickle.load(f)
print(Counter(X_train_labels_resampled))
X_train_resampled = pd.DataFrame(X_train_resampled)
X_train_labels_resampled = pd.DataFrame(X_train_labels_resampled)
X_train_resampled = pd.concat([X_train_resampled, X_train_labels_resampled], axis=1)
X_train_resampled.columns = X_train.columns
X_train_resampled.head()
`FileNotFoundError Traceback (most recent call last)
in
8 # np.array(X_train.Class))
9 # SLOW so will just unpickle something that was run previously
---> 10 with open('pickle/train_data_resampled.pkl', 'rb') as f:
11 X_train_resampled = pickle.load(f)
12 with open('pickle/train_data_labels_resampled.pkl', 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'pickle/train_data_resampled.pkl'`
The text was updated successfully, but these errors were encountered: