Comments (10)
is it because you put =
in your feature names?
from skope-rules.
@osdiego Did you copy and paste from another document. The "-3" is not being read correctly by the query function. Try removing/deleting the minus and replacing it. Let me know if this works.
from skope-rules.
I see, I think that might be the issue.
But what is causing this issue? Is there any workaround for it?
from skope-rules.
the variable names are parsed to build the rules, which causes your bug.
I don't see an easy workaround. You really shouldn't put =
in your feature names...
from skope-rules.
You really shouldn't put = in your feature names...
Feature names are strings, so it seems like a limitation to restrict what they can contain (everything else in the scikit-learn world doesn't care about it). Maybe it should be allowed, or at least documented somewhere?
from skope-rules.
you are right this should be documented. Feel free to open a PR for that or for fixing the syntax error :)
from skope-rules.
Guys, I too get the similar error, when I run the below command, if I remove the pipe, it works with only one condition
SyntaxError: Python keyword not valid identifier in numexpr query
Error is --- train_outliers = train.query('age_z > 3 | age_z < ‐3')
from skope-rules.
Guys, I too get the similar error, when I run the below command, if I remove the pipe, it works with only one condition
SyntaxError: Python keyword not valid identifier in numexpr query
Error is --- train_outliers = train.query('age_z > 3 | age_z < ‐3')
This happened to me as well. The problem was that I kept holding down the alt-key when writing the following the pipe symbol. I encounter this frequently, as writing pipe requires me to hold alt.
from skope-rules.
Guys, I too get the similar error, when I run the below command, if I remove the pipe, it works with only one condition
SyntaxError: Python keyword not valid identifier in numexpr query
Error is --- train_outliers = train.query('age_z > 3 | age_z < ‐3')This happened to me as well. The problem was that I kept holding down the alt-key when writing the following the pipe symbol. I encounter this frequently, as writing pipe requires me to hold alt.
Happened to me too, do anyone know how to fix?! Thanks xD
from skope-rules.
@CCNOAI I'm doing something like: (importance >= 0 | importance = -7).
The question is: I need to search like that, is there no way?
from skope-rules.
Related Issues (20)
- how to limit number of rules and number of conditions in rules HOT 1
- how to work with categorical values data HOT 3
- can you share some description how it works from theoretical point of view and comparative performance vs known other repos like
- what is nb? HOT 3
- Classification vs regression HOT 2
- issue in mask indexing HOT 1
- sklearn.externals.six is Deprecated in Sklearn 0.23 HOT 8
- Error while loading credit data HOT 2
- How to cite this method in an academic paper? HOT 3
- documentation HOT 1
- Performance optimization
- The oob score
- Not compatible with sklearn v1? HOT 1
- ImportError: cannot import name 'Iterable' from 'collections' HOT 2
- Questions about how to use and interpret rules?
- cannot import name 'ScopeRules' from 'skrules' HOT 1
- Site Skope-Rules to scientific papers HOT 1
- conda-forge package HOT 2
- pip install skope-rules brings the previous version of the code before fixing issue #47
- Update/Alias for imports for latest sklearn version and python >3.10
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 skope-rules.