Skip to content

can not import "from abc import ABC" #3

@kongkongruye

Description

@kongkongruye

My python env is 2.7


ImportError Traceback (most recent call last)
in ()
----> 1 from modAL.models import ActiveLearner
2 from sklearn.neighbors import KNeighborsClassifier
3
4 # initializing the active learner
5 learner = ActiveLearner(

/usr/local/lib/python2.7/dist-packages/modAL/init.py in ()
----> 1 from .models import ActiveLearner, Committee, CommitteeRegressor
2 from .uncertainty import classifier_uncertainty, classifier_margin, classifier_entropy,
3 uncertainty_sampling, margin_sampling, entropy_sampling
4 from .disagreement import vote_entropy, consensus_entropy, KL_max_disagreement,
5 vote_entropy_sampling, consensus_entropy_sampling, max_disagreement_sampling, max_std_sampling

/usr/local/lib/python2.7/dist-packages/modAL/models.py in ()
4
5 import numpy as np
----> 6 from abc import ABC, abstractmethod
7 from sklearn.utils import check_array
8 from sklearn.base import BaseEstimator

ImportError: cannot import name ABC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions