554e2dda6e15976d6b9d4657b2eeff323636514b,tests/data/generators/test_hyper_plane_generator.py,,test_hyper_plane_generator,#Any#,6
Before Change
noise_percentage=0.28, sigma_percentage=0.1)
stream.prepare_for_use()
n_classes = 4
n_features = 10
assert stream.n_remaining_samples() == -1
expected_names = []
for i in range(n_features):
expected_names.append("att_num_" + str(i))
assert stream.get_feature_names() == expected_names
expected_targets = [i for i in range(n_classes)]
assert stream.get_targets() == expected_targets
expected_target_names = []
for i in range(n_classes):
expected_target_names.append("class_num_" + str(i))
assert stream.get_target_names() == expected_target_names
assert stream.get_n_features() == n_features
After Change
assert np.alltrue(y[0] == y_expected[0])
X, y = stream.last_sample()
assert np.alltrue(X[0] == X_expected[0])
assert np.alltrue(y[0] == y_expected[0])
stream.restart()
X, y = stream.next_sample(10)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 554e2dda6e15976d6b9d4657b2eeff323636514b
Time: 2018-05-23
Author: bader.d24@gmail.com
File Name: tests/data/generators/test_hyper_plane_generator.py
Class Name:
Method Name: test_hyper_plane_generator
Project Name: kengz/SLM-Lab
Commit Name: 96071811df8e9a91539c993ab9983f2b445a1b6a
Time: 2019-05-25
Author: kengzwl@gmail.com
File Name: slm_lab/env/__init__.py
Class Name: EnvSpace
Method Name: __init__
Project Name: facebookresearch/Horizon
Commit Name: 4021cdc2b0280973776365d255b0dd8bff5513e8
Time: 2020-02-26
Author: czxttkl@fb.com
File Name: ml/rl/test/evaluation/test_evaluation_data_page.py
Class Name: FakeSeq2SlateTransformerNet
Method Name: forward