Java is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).

learn more… | top users | synonyms

0
votes
2answers
21 views

Latent Dirichlet Allocation as input for WEKA

I am using the Weka API for my research about document classification. I wish to apply Latent Dirichelet Allocation on my dataset followed by using a classifier in Weka. However, it is not so clear to ...
0
votes
0answers
9 views

Finding repeating patterns in sensor data using Java

I'm working with a dataset that has accelerometer (tri axis) readings, magnetometer (also tri axis) readings, readings for colour etc. All the values are numerical. This data was collected by wearable ...
0
votes
0answers
15 views

How to use gain and splitinfo for continuous attributes? [duplicate]

I am implementing a C4.5 algorithm, and for that I need to perform attribute selection. How do I use the gain and split info equation to find the best attribute?
0
votes
0answers
24 views

(R) Automatically calculate optimized Arima(p, d , q) value [migrated]

I'm developing automatic forecast Software with JAVA & R. The following steps are used in R to forecast next 18 values: ...
-1
votes
1answer
19 views

Converting FuzzykMeans to SphericalFuzzyKMeans?

I grabbed an implementation of FuzzyKMeans (FuzzyCMeans) from the nightly build of the Apache Commons Math library, but I now realize I need to use Cosine Similarity instead of the Euclidean Distance. ...
0
votes
0answers
3 views

How to implement MEKA command in java [migrated]

The command line is: java meka.classifiers.multilabel.BR \ -t data/Music_train.arff \ -T data/Music_test.arff \ -W weka.classifiers.bayes.NaiveBayes I have known ...
0
votes
0answers
19 views

Classifier jars for java

I have a train file which has categorical features like IN JJ PRP_VBP VB NN PRP$ . . . The third column is the ground truth and can have value only out of ...
0
votes
0answers
5 views

How to add instances from text file to an arff file by using java [migrated]

I have instances in text file, then I want to add them to an existed arff file. My arff file has relation and couple of attributes, how can I add those instances into specific lines in arff file? ...
1
vote
1answer
34 views

how to add instances data into test arff file with the same attribute and relation with training file [closed]

I have training arff file, and also I have instances data at hand. Now I want to add the instances data onto another file, called test file, and this test file has the same relation header and ...
0
votes
1answer
99 views

Compute p-value of single value in arbitrary distribution (using java and apache.commons.math3)

I want to compute the p-value of a single numeric value drawn from an arbirtary distribution. The p-value should be comparable to p-values that have been computed with single distinict values drawn ...
0
votes
1answer
74 views

Detecting An Image is Bright or Dark? [closed]

I use Java and I have some PNG images. I want to put a caption on my images. However I want that: if an image is bright I want to put a black text on image and if an image is dark I want to put a ...
1
vote
0answers
22 views

range normalized with unclear highest value

I tried to normalize many set, which each set consists of 12 values. I want to normalize it into range between 1 and -1. However, the highest value is unclear because the value can be trillion, or ...
0
votes
1answer
112 views

Is WEKA's logistic regression tool slow? If yes, are there faster alternatives?

I have to run logistic regression several thousand times, within a Java/Scala program. A general spec for one of the problems is: ~300 continuous attributes ~<10000 positives, and randomly pick ...
1
vote
1answer
50 views

Implementation of online classification algorithms?

I'm looking for implementations of online learners. I guess that is possible with AdaBoost. Where you train the model and then you modify it by adding later more training data. However you don't have ...
0
votes
0answers
29 views

Calculations using data captured over time seems to need a more advanced analysis method

I got a couple comments on my question. First of all, thank you very much. I was asked to be more clear. So, here's an attempt at that. I'm capturing raw data of play performance for each player ...
2
votes
1answer
154 views

Obtaining R pec survival patient risk percentage

Introduction I have a 300,000-row cancer dataset with around 60 variables (cancer stage, year of diagnosis, radiation therapy, histology, etc.) with a time variable ("number of months survived") and ...
0
votes
1answer
29 views

Application “tuning” based on statistics: Lowest-Learning-Curve API for Java programmer?

I want to write an application, where users will have to choose between different "configurations", and I am looking for a way to statistically validate the "balance" of those "configurations", to ...
1
vote
1answer
108 views

Test the convergence of a neural network

I'm using Weka multilayer-perceptron classifier to do classifications. I want to know after exactly how many epochs the neural network converges(weights don't update any more). I'm using its java API, ...
0
votes
1answer
48 views

Finding the most relevant factors that lead to an event

I have been tasked with looking at a set of data with about 6000 records that each have 60 or so qualities associated with them (Let these be X1, X2, ... ) and determining what are the top 8 factors ...
0
votes
1answer
338 views

Percentile to Z-score in PHP or JAVA

I am searching for a way to calculate the $z$-score for a given percentile $p$. I found this site doing such a calculation. They have given a formula for calculating $P(Z\leq z)$: $$ \Phi(z) = P(Z ...
4
votes
1answer
248 views

Verifying the output of implementing internal clustering validity indexes

I have implemented some internal clustering validity indexes in Java: Simplified Silhouette. Calinski-Harabasz (VRC). Davies -Bouldin. Dunn's Index. How could I verify if my implementation is ...
2
votes
0answers
318 views

Outlier detection in time series data

I checked different questions on similar topics, but none were exactly the answer I wanted and I am confused. I am working with big data, the data has a bursty nature with high frequency. I ...
0
votes
0answers
105 views

How would I find the scores/loadings matrices from the covariance method for principal component analysis?

I'm writing an Java implementation of PCA that uses the covariance method of transforming a data set: (With m x n input matrix X and k desired principal components) 1. Transform X into X' by, for ...
0
votes
0answers
87 views

Multiple-criteria decision analysis packages for Java

Does any multiple criteria decision analysis (MCDA) package/library exist in Java? I work on ABM modelling and need to do use such a package to guide agents in their assessments. Previously I had ...
0
votes
0answers
70 views

Using R in Java Project

I hope this question is not off topic on CV: I am currently fitting some different models (naive bayes, logistic regression...) in R which I up to now thought of as prototypes for a later Java ...
2
votes
1answer
334 views

Multi-armed bandit algorithms in Java?

Multi-armed_bandit problem defenition from Wikipeda: "In probability theory, the multi-armed bandit problem (sometimes called the K-[1] or N-armed bandit problem) is the problem a gambler faces at a ...
2
votes
2answers
160 views

Looking for a test for shape comparison

I have two different time serie both length = 100 and I need to know what is the best test (non-parametric, if possible), that return how much these two series are same or similar shapes. Here are ...
0
votes
0answers
178 views

Compare shapes with Kolmogorov-Smirnov test

I have two time series, both 100 points length: I would like to perform the goodness of fit to know if these two series have same or similar shape or if they differs significantly. I have read about ...
0
votes
1answer
479 views

p-value for hypothesis test with given correlation, sample size

I'm writing a statistical tool in Java. Here I'm calculation pearson correlation values (r). My next step is to validate if my correlation values are good enough to prove that my to variables are ...
1
vote
2answers
676 views

Why am I getting different intercept values in R and Java for simple linear regression?

I have linear regression code written in R and I have to do the same thing in Java. I used Apache Commons math library for this. I used the same data in R code and in Java code, but I got different ...
1
vote
1answer
354 views

Calculating the probability of a sum of Poisson-distributed random variables

In Java, I have a set of users, each of which has a Poisson-distributed demand with a known mean: ...
1
vote
0answers
133 views

Sheather-Jones bandwidth algorithm implementation in java?

The Sheather-Jones method for selecting an appropriate bandwidth for kernel density estimation generally produces better results than simpler methods such as Silverman's rule of thumb and Scott's ...
2
votes
0answers
184 views

How do I get the p-value when using Java's OLSMultipleLinearRegression?

I'm doing my regression using Apache's OLSMultipleLinearRegression class. How do I get the p-value? Is there another name for p-value that I should be looking for in the docs? EDIT: I have the ...
5
votes
1answer
405 views

Is Xorshift RNG good enough for Monte Carlo approaches? If not what alternatives are there?

I recently stumbled across an article on pseudorandom numbers in Java which mention potential weaknesses in the default algorithm, called linear congruential generator (LCG), and gives some ...
2
votes
2answers
657 views

Good clustering Java library

I'm looking for a good Java library implementing several clustering algorithms. I'll have to cluster some programs execution traces and I still don't know which algorithms I am going to need, so I'd ...
6
votes
5answers
3k views

Open source Java library for statistics at the level offered by a graduate statistics course

I am taking a graduate course in Applied Statistics that uses the following textbook (to give you a feel for the level of the material being covered): Statistical Concepts and Methods, by G. K. ...
2
votes
1answer
403 views

Different size of vocabulary made by Weka and R's tm

I own around 40,000 text files for preprocessing (in purpose of document classification). I used R (with tm package) for prototype and now looking for a equivalent Java library for products. ...
3
votes
1answer
243 views

Eigenvalues nearly all 1 in canonical correlation analysis

I ran a Canonical Correlation Analysis on about 845 cases with 1000 variables each. (It originally started with 1000 cases and 400 variables but by using a kernel I got a 1000x1000 matrix) As a ...
1
vote
2answers
579 views

Java code for thin SVD

I am looking for a library/package/code to do thin SVD in Java. I found a good implementation of SVD in the COLT package for java, but that's not sufficiently robust with large sparse matrices when ...
1
vote
1answer
1k views

Implementation of Gaussian process

i try to implement a simple gaussian process regression in java. I almost got every step from the book http://www.GaussianProcess.org/gpml . With my implementation of algorithm 2.1 on page 19 i'm ...
5
votes
3answers
2k views

Data mining classification competition

I'm currently taking a data mining class, and for one our projects we're required to predict the class label for an unknown data set by first building a classifier on a training data set which already ...
4
votes
2answers
507 views

How to implement SIRS model?

I have been given a project to implement an SIRS model. While searching how to do it, I found this site and a question related to epidemic model. It is very much related to my project and is quite ...
3
votes
0answers
380 views

Java support for PMML

I am new in PMML, Predictive Model Markup Language and I was wondering if there is some kind of Java support (Open Source / professional) for creating/parsing PMML files. Initially I only have in ...
2
votes
0answers
556 views

Explanation of the Kolmogorov-Smirnov Test with applications in Java

I'm trying to apply the Kolmogorov-Smirnov test for goodness-of-fit to a dataset. I have a large set of values, and would like to know whether it fits a Poisson distribution with given $\lambda$. As ...
3
votes
1answer
164 views

Item set similarity for real-time calculation purposes?

I am working on a real-time recommendation engine. At one step, I have a feature that resembles a string-encoded item set, so I took Jaccard on the tokenized string to get a good similarity result. ...
6
votes
2answers
7k views

How can I determine weibull parameters from data?

I have a histogram of wind speed data which is often represented using a weibull distribution. I would like to calculate the weibull shape and scale factors which give the best fit to the histogram. ...
4
votes
1answer
1k views

How to use/interpret empirical distribution?

First of all I'd like to apologize for the vague title, I couldn't really formulate a better one just now, please feel free to change, or advice me to change, the title to make it better fit the core ...
1
vote
2answers
248 views

McNemar's test implementation in Java

Does any body know of a Java implementation of McNemar's Test?