b25babd44bbf1dafb7f0fe7bd633c3814770aa62,examples/plot_transformer.py,,,#,12

Before Change


estimator = TemplateTransformer()
X_transformed = estimator.fit_transform(X)

plt.plot(X.flatten()/X.max(), label="Original Data")
plt.plot(X_transformed.flatten()/X_transformed.max(), label="Transformed Data")
plt.title("Scaled plots of original and transformed data")

After Change



plt.legend(loc="best")
plt.grid(True)
plt.xlabel("Index")
plt.ylabel("Value of Data")

plt.show()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-learn-contrib/project-template
Commit Name: b25babd44bbf1dafb7f0fe7bd633c3814770aa62
Time: 2016-05-10
Author: vighneshbirodkar@nyu.edu
File Name: examples/plot_transformer.py
Class Name:
Method Name: