Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Bug fixes (#1891)
Browse files Browse the repository at this point in the history
* fixes #1890

* fixes #1889
  • Loading branch information
TobyRoseman authored and Zach Nation committed May 20, 2019
1 parent 64ca3bb commit 97822e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/unity/python/turicreate/toolkits/_internal_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ def _print_neural_compute_device(cuda_gpus, use_mps, cuda_mem_req=None, has_mps_
from ._mps_utils import mps_device_name
print('Using GPU to create model ({})'.format(mps_device_name()))
elif num_cuda_gpus >= 1:
from . import _mxnet_utils
from ._mxnet import _mxnet_utils
plural = 's' if num_cuda_gpus >= 2 else ''
print('Using GPU{} to create model ({})'.format(plural, gpu_names))
if cuda_mem_req is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -762,9 +762,10 @@ def l2Dist(v1, v2):
dist += math.pow(v1['pos'][i] - v2['pos'][i], 2)
return math.pow(dist, 0.5)



evaluation_result = {k: metrics[k] for k in ['accuracy', 'f1_score', 'log_loss', 'precision', 'recall', 'auc']}

evaluation_result = {k: metrics[k] for k in ['accuracy', 'f1_score', 'log_loss', 'precision',
'recall', 'auc', 'roc_curve', 'confusion_matrix']}
evaluation_result['num_test_examples'] = len(dataset)
for k in ['num_classes', 'num_features', 'input_image_shape', 'num_examples', 'training_loss', 'training_time', 'model', 'max_iterations']:
evaluation_result[k] = getattr(self, k)
Expand Down

0 comments on commit 97822e2

Please sign in to comment.