Last active
January 18, 2022 14:30
-
-
Save k501/e0ab73e760504b99e7cc to your computer and use it in GitHub Desktop.
to convert csv to pkl
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
from pylearn2.datasets.csv_dataset import CSVDataset | |
import pickle | |
print 'convert: train.csv -> train.pkl' | |
pyln_data = CSVDataset("../R/out_for_pylearn2/train.csv", one_hot=True, delimiter=',') | |
pickle.dump( pyln_data, open( "data/train.pkl" , 'w' ) ) |
How can I run this file in python?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks