1bfc00fa651e0f13e5bbb27953dcacc7288108bf,Orange/statistics/basic_stats.py,BasicStats,__init__,#BasicStats#Any#Any#,9
Before Change
class BasicStats:
def __init__(self, variable, data):
if (isinstance(variable, Variable) and
not isinstance(variable, ContinuousVariable)):
raise ValueError("variable "{}" is not continuous".
format(variable.name))
col, sparse = data.get_column_view(variable)
self.min = bn.nanmin(col)
self.max = bn.nanmax(col)
// TODO sparse data
After Change
self.from_data(dat, variable)
elif dat is None:
self.min = float("inf")
self.max = float("-inf")
self.mean = self.var = self.nans = self.non_nans = 0
else:
self.min, self.max, self.mean, self.var, self.nans, self.non_nans \
= dat
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: biolab/orange3
Commit Name: 1bfc00fa651e0f13e5bbb27953dcacc7288108bf
Time: 2013-02-01
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/statistics/basic_stats.py
Class Name: BasicStats
Method Name: __init__
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 74e8a965abd8b185d456ece693ef8a8bdcd5dfd3
Time: 2020-12-15
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/training.py
Class Name: TrainingStats
Method Name: _get_learning_rate
Project Name: arraiy/torchgeometry
Commit Name: bd21bb4fec8d10b257ceccc3d302abd6d5b7c7d5
Time: 2020-08-26
Author: sj8716643@126.com
File Name: kornia/augmentation/random_generator.py
Class Name:
Method Name: random_sharpness_generator
Project Name: mne-tools/mne-python
Commit Name: 91473147e57464173dedb00ce20f3d5aefd883bd
Time: 2020-10-12
Author: larson.eric.d@gmail.com
File Name: mne/viz/ica.py
Class Name:
Method Name: plot_ica_properties