cavalab / fomo Goto Github PK
View Code? Open in Web Editor NEWfairness-oriented multi-objective optimization
Home Page: http://cavalab.org/fomo/
License: BSD 3-Clause "New" or "Revised" License
fairness-oriented multi-objective optimization
Home Page: http://cavalab.org/fomo/
License: BSD 3-Clause "New" or "Revised" License
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]
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.