This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def upload_dataset_from_catalog(self, dataset): | |
| import json | |
| import time | |
| # client = dr.Client() | |
| res = client.post(client.endpoint + "/projects/{}/predictionDatasets/datasetUploads/".format(self.id), json={"datasetId": dataset.id}) | |
| dataset_id = json.loads(res.text)['datasetId'] | |
| while dataset_id not in [ds.id for ds in self.get_datasets()]: | |
| time.sleep(1) | |
| return dataset_id | |
| def get_prediction_explanations(self, dataset_id): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def upload_dataset_from_catalog(self, dataset): | |
| import json | |
| import time | |
| client = dr.Client() | |
| res = client.post(client.endpoint + "/projects/{}/predictionDatasets/datasetUploads/".format(self.id), json={"datasetId": dataset.id}) | |
| dataset_id = json.loads(res.text)['datasetId'] | |
| while dataset_id not in [ds.id for ds in self.get_datasets()]: | |
| time.sleep(1) | |
| return dataset_id | |
| dr.Project.upload_dataset_from_catalog = upload_dataset_from_catalog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Verifying that +sroecker is my openname (Bitcoin username). https://onename.io/sroecker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from numpy import * | |
| class BLUE: | |
| """A simple implementation of BLUE for 2 measurements""" | |
| def __init__(self): | |
| self.values = matrix([0,0]) | |
| self.ematrix = matrix([[0,0],[0,0]]) | |
| def AddMeasurement(self,v1,v2): |
NewerOlder