Comments (6)
The fix is really two-fold. First, select-rows should clear specifically print-index-range. Second, printing itself should never cause that exception so it needs to always filter print-index-range to be in the range of the current dataset row indexes.
One thing you may really like - select-rows now accepts negative indexes which will index from the end python-style.
from tech.ml.dataset.
And maybe a better example of the issue:
(def x (ds/->dataset {:a (range 1000) :b (range 1000)}))
=> #'jasmine.var/x
(ds/select-rows (ds/tail x 5) [0 1])
Error printing return value (IndexOutOfBoundsException) at ham_fisted.ChunkedList/sublistCheck (ChunkedList.java:216).
End index out of range: end-index(5), n-elems(2)
from tech.ml.dataset.
That is the error I get - index out of bounds - it was because the head/tail operations put print-index-range metadata on the returned dataset and the select-rows operation didn't clear the metadata (which in general it should not). So when you go to print the third, 2 row dataset it has print-index-range of (range 5) from the head operation :-).
from tech.ml.dataset.
New release is up :-)
from tech.ml.dataset.
thanks!!
from tech.ml.dataset.
Wow! Nice!
from tech.ml.dataset.
Related Issues (20)
- Documentation and the actual behavior of `select` do not match. HOT 2
- `ds/rows` produces something vector-of-maps-like that transit cannot handle HOT 7
- Arrow, writing nested types. HOT 5
- tribuo changes types between input dataset and prediction HOT 5
- tensor->dataset not working for 2-d arrays HOT 2
- dataset->categorical-maps does not work as documented
- make `invert-categorical-map` more strict on unknown reverse mapping values HOT 4
- add additional arrity for probability-distributions->label-column to specify result-data type
- strange cat map produced with multiple columns HOT 1
- not all comment lines are recognized as comments HOT 4
- Missing column when reading a parquet file HOT 5
- 'exact' type rolling window
- upgrade to org.tribuo 4.3.1
- support jsonl format for read HOT 1
- fastexcel - update documentation to new version of fastexcel-reader
- add conversion from tensor to/from org.tribuo.math.la.Matrix HOT 1
- inconsistency between printed shape and `shape` function HOT 1
- .xlsx loading fails if a column has a number for a name HOT 2
- Protocol method return type hints can't be primitive HOT 1
- Parsing json with local-date fails
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 tech.ml.dataset.