Skip to content

Commit c9bf3f6

Browse files
committed
Fixing test results
1 parent 5e055e0 commit c9bf3f6

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

bigml/ensemble.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ def __init__(self, ensemble, api=None, max_models=None, cache_get=None,
214214
# avoid checking fields because of old ensembles
215215
ensemble = retrieve_resource(self.api, self.resource_id,
216216
no_check_fields=True)
217-
218217
self.parent_id = ensemble.get('object', {}).get('dataset')
219218
self.name = ensemble.get('object', {}).get('name')
220219
self.description = ensemble.get('object', {}).get('description')

bigml/tests/test_14_create_evaluations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def test_scenario4(self):
194194
"evaluation_wait", "metric", "value"]
195195
examples = [
196196
['data/iris.csv', '50', '50', '800', '80', 'average_phi',
197-
'0.97007']]
197+
'0.98029']]
198198
for example in examples:
199199
example = dict(zip(headers, example))
200200
show_method(self, self.bigml["method"], example)

bigml/tests/test_36_compare_predictions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_scenario1(self):
7777
'Iris-versicolor', '{}'],
7878
['data/iris_missing2.csv', '30', '50', '60', '{}', '000004',
7979
'Iris-versicolor', '{}'],
80-
['data/grades.csv', '30', '50', '60', '{}', '000005', 55.6560,
80+
['data/grades.csv', '30', '50', '60', '{}', '000005', 47.04852,
8181
'{}'],
8282
['data/spam.csv', '30', '50', '60', '{}', '000000', 'ham', '{}']]
8383
show_doc(self.test_scenario1)

bigml/tests/test_40_local_from_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def test_scenario4(self):
213213
['data/iris.csv', '10', '10', '500', './tmp/deepnet.json', {},
214214
'Iris-versicolor', '{}'],
215215
['data/iris.csv', '10', '10', '500', './tmp/deepnet_dft.json', {},
216-
'Iris-virginica', '{"default_numeric_value": "maximum"}']]
216+
'Iris-versicolor', '{"default_numeric_value": "maximum"}']]
217217
for example in examples:
218218
example = dict(zip(headers, example))
219219
show_method(self, self.bigml["method"], example)

bigml/tests/test_49_local_pipeline.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,28 +210,28 @@ def test_scenario4(self):
210210
examples = [
211211
['data/dates2.csv', '20', '45', '160',
212212
'{"time-1": "1910-05-08T19:10:23.106", "cat-0":"cat2"}',
213-
'000002', -0.02616, "pipeline1"],
213+
'000002', -0.4264, "pipeline1"],
214214
['data/dates2.csv', '20', '45', '160',
215215
'{"time-1": "2011-04-01T00:16:45.747", "cat-0":"cat2"}',
216-
'000002', 0.13352, "pipeline2"],
216+
'000002', 0.11985, "pipeline2"],
217217
['data/dates2.csv', '20', '45', '160',
218218
'{"time-1": "1969-W29-1T17:36:39Z", "cat-0":"cat1"}',
219-
'000002', 0.10071, "pipeline3"],
219+
'000002', -0.08211, "pipeline3"],
220220
['data/dates2.csv', '20', '45', '160',
221221
'{"time-1": "1920-06-45T20:21:20.320", "cat-0":"cat1"}',
222-
'000002', 0.10071, "pipeline4"],
222+
'000002', -0.08211, "pipeline4"],
223223
['data/dates2.csv', '20', '45', '160',
224224
'{"time-1": "2001-01-05T23:04:04.693", "cat-0":"cat2"}',
225-
'000002', 0.15235, "pipeline5"],
225+
'000002', 0.00388, "pipeline5"],
226226
['data/dates2.csv', '20', '45', '160',
227227
'{"time-1": "1950-11-06T05:34:05.602", "cat-0":"cat1"}',
228-
'000002', -0.07686, "pipeline6"],
228+
'000002', -0.04976, "pipeline6"],
229229
['data/dates2.csv', '20', '45', '160',
230230
'{"time-1": "1932-01-30T19:24:11.440", "cat-0":"cat2"}',
231-
'000002', 0.0017, "pipeline7"],
231+
'000002', -0.36264, "pipeline7"],
232232
['data/dates2.csv', '20', '45', '160',
233233
'{"time-1": "Mon Jul 14 17:36 +0000 1969", "cat-0":"cat1"}',
234-
'000002', 0.10071, "pipeline8"]]
234+
'000002', -0.08211, "pipeline8"]]
235235
show_doc(self.test_scenario4)
236236
for example in examples:
237237
example = dict(zip(headers, example))

0 commit comments

Comments
 (0)