-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added some scripts i had failed to track before
- Loading branch information
Ian Goodfellow
committed
Sep 23, 2011
1 parent
05f1045
commit 7639e02
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
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
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) |
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
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() |