Questions tagged [java]

Java (not to be confused with JavaScript) is a general-purpose object-oriented programming language designed to be used in conjunction with the Java Virtual Machine (JVM). "Java platform" is the name for a computing system that has installed tools for developing and running Java programs. Use this tag for questions referring to Java programming language or Java platform tools.

Filter by
Sorted by
Tagged with
1
vote
1answer
27 views

When to use deep learning for java as opposed to python

I have been asked to explore options to build deep learning based applications using java, so i happend to browse a website called dl4j (https://deeplearning4j.org) which has got implemantations of ...
0
votes
0answers
12 views

How to implement the function of getYourInputImage()?

I'm working on eye detection project and I have trained my own model using Tensorflow Library, I have now the Tensorflow lite model. I followed the documentation proposed by Tensorflow for how to ...
1
vote
0answers
23 views

Android: NLP library for date recognition in string

I am currently working on an android app which should make appointments automatically by reading the incoming messages from your mobile phone. I've managed to create a service which monitors the ...
0
votes
0answers
156 views

Extract features ( predictions ) from tflite model on Android device

I'm working on a eyes detection in real time project that uses the tensorflow library. I train my own model using CNN and dataset on images and I have generated the frozen inference graph, and I test ...
1
vote
1answer
14 views

call Python script from JavaEE

i create model using sklearn library and i want to run this model in JavaEE application i have been trying Jython, but it's impossible to import some important library like pandas and numpy, so how I ...
2
votes
5answers
74 views

30 Years Of Excel Test Data

I am a CS intern at an industrial company that has 30 years of excel files that need to be analyzed. Looking at the data, only a fraction of the files need to be looked at and used. After those files ...
0
votes
0answers
20 views

Can I save an Unsupervised Deep Learning model?

I'm trying to solve some unsupervised problem with Deep Learning but I'm working with a Java Desktop application. I want to use Deeplearning4J for this task. However, I still want to code in python. ...
0
votes
0answers
29 views

Wordnet Similarity between 2 Synsets in java

Looking for appropriate Java Word net library to find distance/Similarity between 2 synsets.Currently making use of Jwnl, for retrieving Synsets. Any suggestion on how to find the Similarity measure ...
0
votes
0answers
49 views

Does one hot encoding in svm for nominal training set gets done by the weka package and package or library particular for svm by itself?

While using svm in java (weka) with nominal input set, does the inbuilt algorithm itself does the one-hot encoding or is it required by the user to do so?
0
votes
0answers
22 views

Logistic regression implementation not working

Recently, I have been reading about machine learning of which logistic regression is one. After reading, to test my understanding, I tried to implement LR in Java. When I tried it on Logical OR and ...
0
votes
0answers
14 views

Tournament prediction

Question: Given a series of wins, losses, and draws from before, is it possible to determine the bracket for a tournament? I've been wondering for a while whether it's possible to determine a ranking ...
1
vote
1answer
45 views

Does PMML support probability calibration?

As I need to port a decision tree model from Python to Java, I would like to know whether PMML (Predictive Model Markup Language) supports probability calibration.
0
votes
1answer
55 views

SGD vs SGD in mini batches

So I recently finished a mini batches algorithm for a library in building in java(artificial neural network lib). I then followed to train my network for an XOR problem in mini batches size of 2 or 3, ...
1
vote
0answers
111 views

How to resample non-equidistant timeseries data in java?

I have a lot of movement data from a sensor of an android phone. The sensor-data is not equally spaced. The first column is the timestamp, the second to fourth are the values. I have many of these ...
2
votes
3answers
91 views

Tell me some things a data scientist/statistician needs to do that can't be done in R/Stata/SAS/SPSS [closed]

Why do I need to learn to program in python or Java and learn data structures? I can't think of a single thing statisticians/data scientists need to do that isn't built in as a package in R/stata.
1
vote
2answers
66 views

Lightweight execution of Spark MLLib models

I have some training data which I am using to build a Spark MLLib model which is in a Hive database. I am using simple linear regression models and the PySpark API. I have code set up to train this ...
8
votes
1answer
445 views

Load keras model in Java

What are the requirements to load the trained model by Keras in Java? I checked that DeepLearning4J supports ...
4
votes
1answer
5k views

How to sort two dimensional array in Java? [closed]

I have a two dimensional double array. I need to sort my based column 1 in descending order. How can I sort my two dimensional array in descending order. Sample data and code are the following: <...
3
votes
1answer
1k views

How to calculate TPR and FPR for different threshold values for classification model?

I have built a classification model to predict binary class. I can calculate precision, recall, and F1-Score. Now, I want to generate ROC for better understanding the classification performance of my ...
8
votes
1answer
313 views

How to use SMOTE in Java Weka API?

I am trying to build classification model using Java Weka API. My training dataset have class imbalance problems. For this reason, I want to use SMOTE to reduce class imbalance problem. But, I do not ...
8
votes
2answers
239 views

How do I use a custom stopwords filter in the Java Weka API?

I am using the Java Weka API to build a classification model. I can use the builtin stopwords filter. However, I need to use a custom filter for my problem. I do not know how to use a custom stopwords ...
8
votes
2answers
581 views

How do i calculate prediction probability of a class in Java Weka Api?

I am developing a prediction model using Java Weka api. I can predict class for the new instance using the following code: ...
1
vote
1answer
24 views

AI that maximizes the storage of rectangular parallelepipeds in a bigger parallelepiped

As you can see in the title, I'm trying to program an AI in Java that would help someone optimize his storage. The user has to enter the size of his storage space (a box, a room, a warehouse etc...) ...
1
vote
1answer
67 views

How to migrate R decision tree to Java

I have trained a conditional inference decision tree in R using library party with function ctree and saved the model in an <...
1
vote
0answers
29 views

Processed data cannot build Naive Bayes Classifier model

Having preprocessed data using weka supervised cfssubseteval forward and backward selection, the decision tree model builds and makes prediction well, but naive Bayes do not recognize the same Arff ...
1
vote
0answers
209 views

Item Similarity with Spark MLLib

I currently have a log file of activity that I am trying to run an item-similarity analysis. Example data: ...
2
votes
1answer
738 views

Running Tensorflow MobileNet from Java

I am trying to run Tensorflow for image recognition (classification) in Java (JSE not Android). I am using the code from here, and here. It works for Inceptionv3 models, and for models retrained ...
1
vote
0answers
40 views

is it possible to write machine learning algorithm in octave or python for application created in android [closed]

We planned to create an Android app which predicts the present student in class through face detection by camera in the class, my job is to write algorithm for face detection and the problem is I can ...
1
vote
0answers
318 views

Custom Writable Serialization in Hadoop [closed]

I have some questions about Custom Writable objects in Hadoop. First of all, the private instance variables of the Writable object have to be Writable? How does Hadoop handle ...
1
vote
2answers
2k views

Can I have a neural network output values >100?

All the samples and articles i have seen are all having outputs of 1 or less. Is there a hidden reason why no one is using NN to produce higher value integers?? My situation is that I want NN to ...
3
votes
2answers
3k views

Is Java or Python a better choice for an application involving data intensive algorithms employing natural language processing?

I am a professional java developer with 9 years of experience. Never worked with Python but, I do not have any restraints learning it. Still I need clarity on a couple of aspects. I hope if anyone ...
0
votes
1answer
731 views

tensorflow saved model to java

Hello data scientists (I'm not), I adapted a multi-class-text-classification-cnn from https://github.com/jiegzhan/multi-class-text-classification-cnn (thanks Jie Zhang) It works ! 90% accuracy ! Now ...
1
vote
1answer
2k views

is there any way to plot ROC curves from weka

i am using some algorithms from weka . i was willing to plot some algorithms' roc curve for comparison . Is it possible and how ?
2
votes
0answers
64 views

Is there any way to generate ROC curves from KEEL?

i am using the KEEL gui for my experiments . I want to plot a ROC curve of the results produced by KEEL rather than a just a roc score value .
-1
votes
1answer
2k views

Simple Weka classification example in Java gives inconsistent answers

I have the following simple weka code to use a simple decision tree, train it, and then make predictions. ...
4
votes
1answer
3k views

Building a Tic Tac Toe game which learns by itself

Let's assume we have a huge database gathered which contains winning sequences, which each player played and won. (Both the players are programmed, to obtain random numbers and attempt playing the ...
4
votes
2answers
228 views

How to change default values of ANNIE resources in GATE from java code?

In GATE default values for ANNIE are set during initialization, but sometimes based on requirements they have to be changed. My Requirement : I want to extract English sentences without considering ...
0
votes
1answer
217 views

Creating a neural network for predicting next vote in a series of votes

We are working on a project for creating music based on crowd sourcing. People vote for every note until the vote is closed, and then move on to the next vote until the canvas for the music is filled. ...
4
votes
4answers
3k views

What algorithm is used to extract keywords from unstructured texts?

I'm using StanfordNLP (java pakage) for twitter sentiment analysis. I want to extract keywords from the tweets, classify the keywords as positive, negative, or neutral, and use those counts to ...
2
votes
1answer
160 views

Finding a proper method for an online driving style classification using acceleration data

I am using a smartphone in my car to gather acceleration data (both longitudinal and lateral). Now, I want to classify my data in real-time based on the acceleration force applied through accelerating,...
3
votes
3answers
3k views

Scala vs Java if you're NOT going to use Spark?

I'm facing some indecision when choosing how to allocate my scarce learning time for the next few months between Scala and Java. I would like help objectively understanding the practical tradeoffs. ...
1
vote
1answer
382 views

Do something with the output of reducers

I am executing the job as: ...
2
votes
1answer
1k views

anomaly detection alert system

I need to design and implement my 3rd year project which is a real-time alert system for parents to keep their kids safe with their smartphones. My data is time-based and unsupervised, which means I ...
0
votes
1answer
135 views

Why in deep learning or another AI technique python is used rather than other languages? [closed]

I want to know, why python? Instead of C#, Java, C\C++ and so on?
2
votes
2answers
1k views

How to rank documents using Bag of words approach

I want to cluster the documents I get for Google scholar search using the Bag of words model. I thought of using Java as the language. Assume for the keyword k, Google scholar gives me 50 results. If ...
0
votes
1answer
98 views

How to migrate application which has backend running using DLL methods and front end in JAVA to Apache spark? [closed]

I have one Java Client which Reads 4 to 5 GBs of data and uses DLL file in order to process it and give O/P back to the JAVA client. Can anyone tell me if this can be implemented using Apache Spark ...
2
votes
0answers
1k views

GATE with Python

I am working on named entity recognition project and find GATE very useful. But I couldn't find a Python connector for GATE yet. Is it possible or is there a way to integrate GATE work flows into ...
2
votes
0answers
160 views

Debugging Neural Network for (Natural Language) Tagging

I've been coding a Neural Network for recognizing and tagging parts of speech in English (written in Java). The code itself has no 'errors' or apparent flaws. Nevertheless, it is not learning -- the ...
2
votes
2answers
1k views

Do I need an Artificial Intelligence API?

I'm wondering if programmers tend to use AI APIs. And if so, what are they like? And where can I find a nice one for Java?
-2
votes
1answer
4k views

getting error:-Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/io/Writable [closed]

I am trying to connect to hive from java but getting error. I searched in google but not got any helpfull solution. I have added all jars also. The code is:- ...