Spec-Zone.ru › TensorFlow 1.15

tf.contrib.learn.NotFittedError

Класс исключений, который следует использовать, если оценщик используется до обучения.

tf.contrib.learn.NotFittedError(
    *args, **kwargs
)

ИСПОЛЬЗОВАНИЕ ЭТОГО ИСКЛЮЧЕНИЯ УСТЕРЕЛО.

Этот класс наследуется как от ValueError, так и от AttributeError, чтобы помочь в обработке исключений и обратной совместимости.

Примеры:

from sklearn.svm import LinearSVC from sklearn.exceptions import NotFittedError try: ... LinearSVC().predict([[1, 2], [2, 3], [3, 4]]) ... except NotFittedError as e: ... print(repr(e)) ... # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS NotFittedError('Этот экземпляр LinearSVC еще не обучен',)

Скопировано с https://github.com/scikit-learn/scikit-learn/master/sklearn/exceptions.py

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/learn/NotFittedError

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API