c6ee8ee45b7b854fa2731b6f238e223ec24e1cab,yellowbrick/features/manifold.py,Manifold,fit_transform,#Manifold#Any#Any#,293
Before Change
self._determine_target_color_type(y)
// Compute classes and colors if target type is discrete
if self._target_color_type == DISCRETE:
self.classes_ = np.unique(y)
color_kwargs = {"n_colors": len(self.classes_)}
if isinstance(self.colors, str):
color_kwargs["colormap"] = self.colors
else:
color_kwargs["colors"] = self.colors
self._colors = resolve_colors(**color_kwargs)
// Compute target range if colors are continuous
elif self._target_color_type == CONTINUOUS:
y = np.asarray(y)
self.range_ = (y.min(), y.max())
with Timer() as self.fit_time_:
Xp = self.manifold.fit_transform(X)
self.draw(Xp, y)
After Change
// fit and transform methods, but must do it manually here.
// Call super fit to compute features, classes, colors, etc.
super (Manifold, self ).fit(X, y)
with Timer() as self.fit_time_:
Xp = self.manifold.fit_transform(X)
self.draw(Xp, y)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances Project Name: DistrictDataLabs/yellowbrick
Commit Name: c6ee8ee45b7b854fa2731b6f238e223ec24e1cab
Time: 2019-07-27
Author: 43993586+naresh-bachwani@users.noreply.github.com
File Name: yellowbrick/features/manifold.py
Class Name: Manifold
Method Name: fit_transform
Project Name: enthought/chaco
Commit Name: 11dbbf833199660f0a59791b6ddfc4163cd6a27d
Time: 2009-06-26
Author: pwang@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/contour_poly_plot.py
Class Name: ContourPolyPlot
Method Name: _update_levels
Project Name: DistrictDataLabs/yellowbrick
Commit Name: c6ee8ee45b7b854fa2731b6f238e223ec24e1cab
Time: 2019-07-27
Author: 43993586+naresh-bachwani@users.noreply.github.com
File Name: yellowbrick/features/manifold.py
Class Name: Manifold
Method Name: fit_transform
Project Name: enthought/chaco
Commit Name: 11dbbf833199660f0a59791b6ddfc4163cd6a27d
Time: 2009-06-26
Author: pwang@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/contour_line_plot.py
Class Name: ContourLinePlot
Method Name: _update_levels