Skip to content

Commit

Permalink
added some scripts i had failed to track before
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Goodfellow committed Sep 23, 2011
1 parent 05f1045 commit 7639e02
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions exploring_estimation_criteria/make_tiny_dataset.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from pylearn2.utils import serial
from pylearn2.datasets.cos_dataset import CosDataset
from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix

d = CosDataset()

X = d.get_batch_design(10)

nd = DenseDesignMatrix(X)

serial.save('tiny_datset.pkl',nd)
8 changes: 8 additions & 0 deletions exploring_estimation_criteria/plot_dataset.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from pylearn2.utils import serial
import sys
import matplotlib.pyplot as plt

d = serial.load(sys.argv[1])
X = d.get_design_matrix()
plt.scatter(X[:,0],X[:,1])
plt.show()

0 comments on commit 7639e02

Please sign in to comment.