Comments (14)
@sjwhitworth I think at least MAP_32BIT
is only supported on Linux/x86-64 so that looks like a go-mmap project problem. It assumes that all the mmap flags are supported on all architectures on Linux.
from golearn.
I quite want to remove the go-mmap
dependency and do the mapping ourselves, because I don't think go-mmap
even has mremap
support yet. Unfortunately I only have x86-64 to test against.
from golearn.
Do you think that we should revert?
from golearn.
Problem is, the new instances storage format relies on edf/
, and EDF relies on mmap
. I think maybe the best thing to do is to fork the mmap
dependency, fix the problem with an mmap_linux_arm.go
file which doesn't rely on those flags, change the import path to that temporarily and send a pull to the original author.
from golearn.
OK, if you change the mmap import at the the top of base/edf/map.go
to github.com/Sentimentron/go-mmap
, does it work?
from golearn.
Unfortunately not. :(
# github.com/Sentimentron/go-mmap
../../../Sentimentron/go-mmap/mmap_linux_arm.go:8: MAP_ANONYMOUS redeclared in this block
previous declaration at ../../../Sentimentron/go-mmap/mmap_linux.go:9
../../../Sentimentron/go-mmap/mmap_linux_arm.go:9: MAP_DENYWRITE redeclared in this block
previous declaration at ../../../Sentimentron/go-mmap/mmap_linux.go:10
../../../Sentimentron/go-mmap/mmap_linux_arm.go:10: MAP_NORESERVE redeclared in this block
previous declaration at ../../../Sentimentron/go-mmap/mmap_linux.go:11
../../../Sentimentron/go-mmap/mmap_linux_arm.go:11: MAP_GROWSDOWN redeclared in this block
previous declaration at ../../../Sentimentron/go-mmap/mmap_linux.go:12
../../../Sentimentron/go-mmap/mmap_linux_arm.go:12: MAP_EXECUTABLE redeclared in this block
previous declaration at ../../../Sentimentron/go-mmap/mmap_linux.go:13
../../../Sentimentron/go-mmap/mmap_linux_arm.go:13: MAP_LOCKED redeclared in this block
previous declaration at ../../../Sentimentron/go-mmap/mmap_linux.go:14
../../../Sentimentron/go-mmap/mmap_linux_arm.go:14: MAP_NONBLOCK redeclared in this block
previous declaration at ../../../Sentimentron/go-mmap/mmap_linux.go:15
../../../Sentimentron/go-mmap/mmap_linux_arm.go:15: MAP_POPULATE redeclared in this block
previous declaration at ../../../Sentimentron/go-mmap/mmap_linux.go:16
../../../Sentimentron/go-mmap/mmap_linux_arm.go:16: MAP_UNINITIALIZED redeclared in this block
previous declaration at ../../../Sentimentron/go-mmap/mmap_linux.go:19
../../../Sentimentron/go-mmap/mmap_linux_arm.go:20: MADV_REMOVE redeclared in this block
previous declaration at ../../../Sentimentron/go-mmap/mmap_linux.go:23
../../../Sentimentron/go-mmap/mmap_linux_arm.go:20: too many errors
from golearn.
OK, so renamed the existing linux one to linux_amd64.go
, hopefully that will avoid some errors.
from golearn.
All good in the hood. I'll make the changes and send a PR.
from golearn.
Alrighty, I'll need to test it on my Linux box.
from golearn.
OK, nothing's obviously wrong. Now I just need to find an x86 box to test on...
from golearn.
Wait a second, Travis isn't happy...
from golearn.
Yet it passed the previous README.md commit. Weird...
from golearn.
@Sentimentron It's saying that the unmap part failed on Go 1.2...
Failures:
* /home/travis/gopath/src/github.com/sjwhitworth/golearn/base/edf/map_test.go
Line 47:
Expected: '<nil>'
Actual: 'invalid argument'
(Should be equal)
Full log here:
https://travis-ci.org/sjwhitworth/golearn/jobs/32179498
I am not sure how unmap can fail there. Perhaps we're unmapping the same mapping twice?
from golearn.
I'm not precisely sure what's going on, but removing an extraneous Sync
seems to get it passing on my machine.
from golearn.
Related Issues (20)
- The same order of categorical values for Equals function is necessary or not HOT 1
- Example about how to query the model after being trained using KNN ? HOT 4
- Building the KNN Example as a static linked executable fails
- runtime error:cgo argument has Go pointer to Go pointer HOT 2
- neural: Rename `neural.NeuralFunction` -> `neural.Function` HOT 1
- Bad import, was an upstream dependency deleted? HOT 2
- Question: How to convert class name into single quote?
- Any interest in XGBoost? HOT 7
- Implement tanh activation func HOT 2
- Error in download golearn with 'go get' HOT 3
- KNNClassifier has no field or method optimisedEuclideanPredict HOT 2
- golearn can read the .pickle converted csv file ?
- Support for Apple Metal HOT 2
- KNN Classifier saved and loaded models don't give the same results. HOT 1
- KNN.optimisedEuclideanPredict undefined (type *KNNClassifier has no field or method optimisedEuclideanPredict) HOT 6
- Question: Could we save the model and use it next time for reproduction of result? HOT 6
- there is a crash in dbscan algoritm HOT 8
- Update readme cover image
- PCA returns all 0's HOT 5
- This library is defunct: please correct me if I'm wrong…
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 golearn.