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: 10
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: home-assistant/home-assistant
Commit Name: 6e8c79d5310396987cf39d65ea40279abb799754
Time: 2016-02-17
Author: marhje52@kth.se
File Name: homeassistant/components/light/mysensors.py
Class Name: MySensorsLightRGBW
Method Name: update
Project Name: deepmipt/DeepPavlov
Commit Name: 5bab0c451fda1312cf81e9d81319799a03fce181
Time: 2018-12-26
Author: mary.vikhreva@gmail.com
File Name: deeppavlov/models/squad/squad.py
Class Name: SquadModel
Method Name: process_event