datumbox / datumbox-framework-examples Goto Github PK
View Code? Open in Web Editor NEWCode examples on how to use the Datumbox Machine Learning Framework.
Home Page: http://www.datumbox.com/
License: Apache License 2.0
Code examples on how to use the Datumbox Machine Learning Framework.
Home Page: http://www.datumbox.com/
License: Apache License 2.0
I'm getting following heap exception.when I'm trying to load 100Mb files as the TrainingSets
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects.
Even I increased the heap value by using xmx 2048 also getting same error.
I cloned the examples and wanted to run an example from the Terminal (working fine in Eclipse) getting following exception.
INFO c.d.f.c.d.Dataframe$Builder - Dataset Parsing negative class
Exception in thread "main" java.lang.IllegalArgumentException: URI is not hierarchical
at java.io.File.(File.java:418)
at com.datumbox.framework.common.dataobjects.Dataframe$Builder.parseTextFiles(Dataframe.java:93)
at com.datumbox.framework.applications.nlp.TextClassifier.fit(TextClassifier.java:143)
at com.datumbox.examples.TextClassification.main(TextClassification.java:99)
I am trying to use Language Detection, however the framework detects any content as "hi" (Hindi). Here is the code I am using:
Configuration configuration = Configuration.getConfiguration();
InMemoryConfiguration storageConfiguration = new InMemoryConfiguration();
storageConfiguration.setDirectory("/Users/oal/Desktop/devsrc/main/resources/datumbox-framework-zoo-develop");
configuration.setStorageConfiguration(storageConfiguration);
TextClassifier textClassifier = MLBuilder.load(TextClassifier.class, "LanguageDetection", configuration);
return (String) textClassifier.predict(content).getYPredicted();
When I tried to execute the code.I'm getting following error near( setting) FeatureSelectorTrainingParametersList as follow
trainingParameters.setFeatureSelectorTrainingParametersList(Arrays.asList(new ChisquareSelect.TrainingParameters()));
The method setFeatureSelectorTrainingParametersList(List<AbstractTrainer.AbstractTrainingParameters>) in the type Modeler.TrainingParameters is not applicable for the arguments (List<ChisquareSelect.TrainingParameters>)
so, i changed the line as follow. trainingParameters.setFeatureSelectorTrainingParametersList((List) new ChisquareSelect.TrainingParameters());
I'm getting exception saying:
Exception in thread "main" java.lang.ClassCastException: com.datumbox.framework.core.machinelearning.featureselection.ChisquareSelect$TrainingParameters cannot be cast to java.util.List
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.