2f02fc841773a2e2efba400f5cecfe294c31de10,tests/trees/test_isoup_tree.py,,test_isoup_tree_coverage,#,138
Before Change
def test_isoup_tree_coverage(test_path):
// Cover nominal attribute observer
test_file = os.path.join(test_path, "multi_target_regression_data.npz")
data = np.load(test_file)
X = data["X"]
Y = data["Y"]
// Invalid leaf prediction option
After Change
memory_estimate_period=100, max_byte_size=max_size_mb*2**20
)
tree.partial_fit(X, y)
assert calculate_object_size(tree, "MB") <= max_size_mb
// Memory management in a tree with adaptive leaves
tree = iSOUPTreeRegressor(
leaf_prediction="adaptive", grace_period=200,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 2f02fc841773a2e2efba400f5cecfe294c31de10
Time: 2020-04-16
Author: saulomastelini@gmail.com
File Name: tests/trees/test_isoup_tree.py
Class Name:
Method Name: test_isoup_tree_coverage
Project Name: librosa/librosa
Commit Name: 85bb9812576159ba04f70fc5ad59bedf5dba3765
Time: 2019-08-15
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_resample_mono
Project Name: librosa/librosa
Commit Name: 85bb9812576159ba04f70fc5ad59bedf5dba3765
Time: 2019-08-15
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_resample_stereo
Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 2f02fc841773a2e2efba400f5cecfe294c31de10
Time: 2020-04-16
Author: saulomastelini@gmail.com
File Name: tests/trees/test_stacked_single_target_hoeffding_tree_regressor.py
Class Name:
Method Name: test_hoeffding_tree_coverage