OLD | NEW |
1 library googleapis.prediction.v1_6; | 1 library googleapis.prediction.v1_6; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 19 matching lines...) Expand all Loading... |
30 /** Manage your data in the Google Prediction API */ | 30 /** Manage your data in the Google Prediction API */ |
31 static const PredictionScope = "https://www.googleapis.com/auth/prediction"; | 31 static const PredictionScope = "https://www.googleapis.com/auth/prediction"; |
32 | 32 |
33 | 33 |
34 final common_internal.ApiRequester _requester; | 34 final common_internal.ApiRequester _requester; |
35 | 35 |
36 HostedmodelsResourceApi get hostedmodels => new HostedmodelsResourceApi(_reque
ster); | 36 HostedmodelsResourceApi get hostedmodels => new HostedmodelsResourceApi(_reque
ster); |
37 TrainedmodelsResourceApi get trainedmodels => new TrainedmodelsResourceApi(_re
quester); | 37 TrainedmodelsResourceApi get trainedmodels => new TrainedmodelsResourceApi(_re
quester); |
38 | 38 |
39 PredictionApi(http.Client client) : | 39 PredictionApi(http.Client client) : |
40 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "/prediction/v1.6/projects/"); | 40 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "prediction/v1.6/projects/"); |
41 } | 41 } |
42 | 42 |
43 | 43 |
44 /** Not documented yet. */ | 44 /** Not documented yet. */ |
45 class HostedmodelsResourceApi { | 45 class HostedmodelsResourceApi { |
46 final common_internal.ApiRequester _requester; | 46 final common_internal.ApiRequester _requester; |
47 | 47 |
48 HostedmodelsResourceApi(common_internal.ApiRequester client) : | 48 HostedmodelsResourceApi(common_internal.ApiRequester client) : |
49 _requester = client; | 49 _requester = client; |
50 | 50 |
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1358 /** The most likely class label (Categorical models only). */ | 1358 /** The most likely class label (Categorical models only). */ |
1359 core.String outputLabel; | 1359 core.String outputLabel; |
1360 | 1360 |
1361 /** | 1361 /** |
1362 * A list of class labels with their estimated probabilities (Categorical | 1362 * A list of class labels with their estimated probabilities (Categorical |
1363 * models only). | 1363 * models only). |
1364 */ | 1364 */ |
1365 core.List<OutputOutputMulti> outputMulti; | 1365 core.List<OutputOutputMulti> outputMulti; |
1366 | 1366 |
1367 /** The estimated regression value (Regression models only). */ | 1367 /** The estimated regression value (Regression models only). */ |
1368 core.double outputValue; | 1368 core.String outputValue; |
1369 | 1369 |
1370 /** A URL to re-request this resource. */ | 1370 /** A URL to re-request this resource. */ |
1371 core.String selfLink; | 1371 core.String selfLink; |
1372 | 1372 |
1373 | 1373 |
1374 Output(); | 1374 Output(); |
1375 | 1375 |
1376 Output.fromJson(core.Map _json) { | 1376 Output.fromJson(core.Map _json) { |
1377 if (_json.containsKey("id")) { | 1377 if (_json.containsKey("id")) { |
1378 id = _json["id"]; | 1378 id = _json["id"]; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 _json["csvInstance"] = csvInstance; | 1450 _json["csvInstance"] = csvInstance; |
1451 } | 1451 } |
1452 if (output != null) { | 1452 if (output != null) { |
1453 _json["output"] = output; | 1453 _json["output"] = output; |
1454 } | 1454 } |
1455 return _json; | 1455 return _json; |
1456 } | 1456 } |
1457 } | 1457 } |
1458 | 1458 |
1459 | 1459 |
OLD | NEW |