b7545b3317db0ebcee547d9b80e36ec6dff9d625,Orange/widgets/utils/scaling.py,ScaleData,_compute_scaled_data,#ScaleData#,41
Before Change
self.scaled_data = no_jit = self.original_data.copy()
self.valid_data_array = np.isfinite(no_jit)
for index in range(len(data.domain)):
attr = data.domain[index]
if attr.is_discrete:
no_jit[index] *= 2
no_jit[index] += 1
no_jit[index] /= 2 * len(attr.values)
After Change
all_data = np.hstack(all_data).T
self.scaled_data = self.data.copy()
self.valid_data_array = np.isfinite(all_data)
domain = self.domain
for attr in chain(domain.attributes, domain.class_vars, domain.metas):
c = self.scaled_data.get_column_view(attr)[0]
if attr.is_discrete:
c += 0.5
c /= len(attr.values)
else:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
Instances
Project Name: biolab/orange3
Commit Name: b7545b3317db0ebcee547d9b80e36ec6dff9d625
Time: 2017-11-17
Author: lan.zagar@gmail.com
File Name: Orange/widgets/utils/scaling.py
Class Name: ScaleData
Method Name: _compute_scaled_data
Project Name: biolab/orange3
Commit Name: 9b262f2dc9ea11ce93ea77d7a071873f2a09ba56
Time: 2017-11-09
Author: jerneju@gmail.com
File Name: Orange/widgets/utils/scaling.py
Class Name: ScaleData
Method Name: _compute_scaled_data
Project Name: biolab/orange3
Commit Name: b7545b3317db0ebcee547d9b80e36ec6dff9d625
Time: 2017-11-17
Author: lan.zagar@gmail.com
File Name: Orange/widgets/utils/scaling.py
Class Name: ScaleData
Method Name: _compute_jittered_data
Project Name: biolab/orange3
Commit Name: b7545b3317db0ebcee547d9b80e36ec6dff9d625
Time: 2017-11-17
Author: lan.zagar@gmail.com
File Name: Orange/widgets/utils/scaling.py
Class Name: ScaleData
Method Name: _compute_scaled_data
Project Name: biolab/orange3
Commit Name: 9b262f2dc9ea11ce93ea77d7a071873f2a09ba56
Time: 2017-11-09
Author: jerneju@gmail.com
File Name: Orange/widgets/utils/scaling.py
Class Name: ScaleData
Method Name: _compute_jittered_data