f70c720c1624e3fadc52909885a4d3a096cd7214,tests/test_datasets/test_dataset_functions.py,TestOpenMLDataset,test_data_edit,#TestOpenMLDataset#,1343
Before Change
column_names = [
("input1", "REAL"),
("input2", "REAL"),
("y", "REAL") ,
]
desc = "xor dataset represents XOR operation"
result = edit_dataset(
After Change
did = 315
result = edit_dataset(did, default_target_attribute="col_1", ignore_attribute="col_2")
self.assertEqual(did, result)
edited_dataset = openml.datasets.get_dataset(did)
self.assertEqual(edited_dataset.ignore_attribute, ["col_2"])
def test_data_edit_errors(self):
// Check server exception when no field to edit is provided
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: openml/openml-python
Commit Name: f70c720c1624e3fadc52909885a4d3a096cd7214
Time: 2020-08-31
Author: 44670788+sahithyaravi1493@users.noreply.github.com
File Name: tests/test_datasets/test_dataset_functions.py
Class Name: TestOpenMLDataset
Method Name: test_data_edit
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: f83bb369fe8c6da157ca47804eb056b81faf0d10
Time: 2018-07-17
Author: ajhamilton@google.com
File Name: bigquery/cloud-client/authorized_view_tutorial_test.py
Class Name:
Method Name: test_authorized_view_tutorial
Project Name: AIRLab-POLIMI/mushroom
Commit Name: e9365dc4ba92ec975d357700df76f6cd28fd4925
Time: 2017-07-28
Author: carlo.deramo@gmail.com
File Name: examples/atari_dqn.py
Class Name:
Method Name: experiment
Project Name: AIRLab-POLIMI/mushroom
Commit Name: ad44e9a2219e4508a68ba3e831d36b9ca6a324ee
Time: 2017-06-02
Author: carlo.deramo@gmail.com
File Name: examples/grid_world.py
Class Name:
Method Name: experiment