Code Monkey home page Code Monkey logo

fomo's People

Contributors

lacava avatar shakiba-shb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fomo's Issues

Cannot import FomoClassifier

When I try to import FomoClassifier. I get the following error.

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[2], line 1
----> 1 from fomo import FomoClassifier
      2 from pmlb import pmlb
      3 X,y = pmlb.fetch_data('adult', return_X_y=True)

File [..\lib\site-packages\fomo\__init__.py:1]
----> 1 from .estimator import FomoEstimator, FomoClassifier, FomoRegressor
      2 from .version import __version__

File [..\lib\site-packages\fomo\estimator.py:63]
     61 from pymoo.visualization.scatter import Scatter
     62 # types
---> 63 from types import NoneType
     64 from collections.abc import Callable
     67 class FomoEstimator(BaseEstimator):

ImportError: cannot import name 'NoneType' from 'types' ([..\lib\types.py]

Basic Example results in Assertion Error

After work around of Issue #3 (added NoneType = type(None) ).

I get the following error when executing the basic code.

from fomo import FomoClassifier
from pmlb import pmlb
X,y = pmlb.fetch_data('adult', return_X_y=True)
groups = ['race','sex']
est = FomoClassifier()
est.fit(X,y, protected_features=groups)

AssertionError: X should be a dataframe
"""

The above exception was the direct cause of the following exception:

AssertionError Traceback (most recent call last)
Cell In[2], line 6
4 groups = ['race','sex']
...
769 return self._value
770 else:
--> 771 raise self._value

AssertionError: X should be a dataframe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.