Comments (11)
I suggest you try importing it as a Maven project and use Maven to build it. This simply appears to be an artefact of attempting to build RiVal in an unsupported way (at least by us).
To see how to use RiVal as a Maven dependency, please have a look at the rival-examples sub-project
from rival.
Hi @ChemsEddineBerbegue ,
I faced recently this problem you issued some time ago and found a solution using Maven.
The thing is that there is a conflict with the artifact solr-commons-csv from mahour which, in my build, was producing the same error as the one you reported (mainly due to that artifact importing a different version of the commons-csv module).
The fix was done by modifying the pom as follows:
<dependency>
<groupId>org.apache.mahout</groupId>
<artifactId>mahout-mr</artifactId>
<version>0.10.0</version>
<exclusions>
<exclusion>
<groupId>org.apache.solr</groupId>
<artifactId>solr-commons-csv</artifactId>
</exclusion>
</exclusions>
</dependency>
Hope this helps.
from rival.
Hi @ChemsEddineBerbegue,
Can you provide a minimal working example (or not working in this case)?
I believe this is likely to an incorrect maven setup in your Eclipse environment as both CVSParser and CSVRecord classes are from a third party module.
from rival.
Hi,
this is the class which make the problem: import org.apache.commons.csv.CSVFormat; i tried with many versions of commons-csv (1.0 1.1 1.2 1.4) but all of them haven't solved the problem, in addition I am using mahout version 0.12.2 and lenskit 2.2.1, all classes are right except the problem in the class UIPParser.
the method .parse(in) returns a CSVparser while the variable "record" have the type Iterable.
pom.xml file located in the project rival core indicates that the used version of commons-csv is 1.0.
from rival.
Can you provide a code example (of your code) and the scenario in which your build fails?
As you can see in the rival-core pom file, RiVal uses Apache Commons CSV 1.0.
How are you using RiVal? The base case is that you import RiVal through the pom file in your Maven-built project.
from rival.
HI, I never worked with Maven before, I took all the separated projects and merge them in just one SRC folder than put them in eclipse project adding the required jar files and it is done, I used to work with similar projects with the similar approache it worked fine except rival.
from rival.
Hi @ChemsEddineBerbegue,
since that is not the expected development scenario, it is not easy for us to reproduce your problem.
I could take a look at it if you provide us with a link to your environment (e.g., a dropbox link or a ZIP file).
In any case, according to the documentation of the commons-csv library that @alansaid pointed out before, that method should always work. See here the code included in the documentation is the same as the one in the UIPParser.
Hence, I would encourage you to check if you are really including the commons-csv library and if there no other conflicts with other libraries that might be imported with higher preference in your Eclipse project.
Best,
Alejandro
from rival.
I am agree that there is certainly a conflict with the rest of jar files, thank you
from rival.
Btw, @alansaid, if we check that this solution does not break any of the mahout code, we should add it to the release ASAP.
from rival.
Odd that it wasn't causing errors before.
Let's go ahead with the update. However, given Mahout's current development direction, we could consider skipping Mahout in future releases. Mahout Taste is becoming deprecated (or at least stale with only minor bugfixes coming in in the last ~2 years, see inline screenshot of latest commits in https://github.com/apache/mahout/tree/master/mr/src/main/java/org/apache/mahout/cf/taste/impl/recommender)
from rival.
What's the status current status of this?
from rival.
Related Issues (20)
- Check evaluation metrics are suitable for unary/binary data
- Check splitters are suitable for unary/binary data
- Check parsers are suitable for unary/binary data
- Not generalized DataModel for RandomSplitter class
- Not generalized DataModel for Temporal Splitter class
- Not generalized DataModel for SplitterRunner class
- Using Examples with a dataset like ML-10M HOT 11
- Update license snippet in gh-pages HOT 1
- Issue with Precision and Recall HOT 3
- Create jar file of 0.3-SNAPSHOT to be used outside eclipse HOT 2
- DataModel does not support duplicate ratings in dataset
- Implement RecSys Challenge 2016 metric
- [Question]: Split dataset in training, validation and test HOT 12
- Missing documentation for unsupported combination in RandomSplitter HOT 3
- Add custom behaviour to DataModelUtils.saveModel HOT 3
- [Question] Maven install command HOT 5
- Bug in CrossValidatedMahoutKNNRecommenderEvaluator
- Test coverage HOT 3
- Precision values are not consistent with those from other ranking metrics
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 rival.