Comments (4)
Unfortunately, modAL currently does not support pandas support for technical reasons. I have detailed the problem in #20, but the gist is, numpy arrays use row first indexing, while pandas DataFrames use column first by default. This led to tehcnical difficulties which I was unable to implement a proper solution. Of course there would be workarounds, but I did not come up with a robust solution.
from modal.
Oh I see, didn't realize as it happened to mostly work fine with DataFrames.
Isn't .iloc
how you'd do row indexing in pandas? You could selectively calls this if it's a DataFrame.
For my use case numpy arrays would work fine too though.
from modal.
Yes, .iloc
would work, but I didn't want to selectively call X[idx]
or X.iloc[idx]
based on the datatype. That solution would be very hard to extend for a third datatype. A possible solution would be to introduce a wrapper class modALinput
which would handle all the supported datatypes.
from modal.
If I use .loc, then facing the error as stated below:
KeyError: "None of [Int64Index([ 160, 161, 162, 163, 164, 165, 166, 167, 168, 169,\n ...\n 1590, 1591, 1592, 1593, 1594, 1595, 1596, 1597, 1598, 1599],\n dtype='int64', name='', length=1440)] are in the [index]"
whereas; if I use .iloc, then facing the following error:
IndexError: positional indexers are out-of-bounds
Could you please let me know how to approach this.
from modal.
Related Issues (20)
- Multivariate Active regression
- How to extract the image names and labels in the training set after completing the active learning loop and write them to a CSV file
- decision_function instead of predict_proba HOT 5
- AttributeError: bootstrap_init HOT 3
- TypeError: cannot concatenate object of type '<class 'numpy.ndarray'>'; only Series and DataFrame objs are valid
- Can I use modAL with estimators from other libraries than scikit-learn like xgboost? HOT 1
- Which sampling method is best for very unbalanced data? HOT 1
- Encountering error with number of batches per epoch
- mmdetection integration with modAL
- Adding active learning regression implementations based on greedy sampling HOT 2
- modAL not installable via pypi anymore HOT 3
- the modAL package has been changed into modal in the pip repository HOT 7
- Data augmentation with `skorch`
- QBC approach for multi-class classification
- Suggestion on how to improve acquisition.UCB for active GP example HOT 1
- QBC stratified bootstrapping HOT 1
- Use modAL on BERT models HOT 1
- Spacy NER HOT 1
- raise ImportError( ImportError: C extension: None not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext' to build the C extensions first.
- uncertainty query for 2d classifier output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modal.