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
0answers
5 views

R nnet model as an equation for use in other programming languages [migrated]

I've successfully created the model in RStudio using nnet. But now I need to code it up in Java. I presume I could take the weights (wts) and build up the equations necessary for the activation ...
0
votes
1answer
22 views

Java and R: Least Squares Coefficient Estimation - Start at time Zero?

This is the data set I have: vector <- c( -7.459981, 13.26651, 12.10128, 2.380662, 26.42393) Doing an estimation of the coefficient with a linear regression ...
0
votes
1answer
33 views

JFreeChart Boxplot appearance

I'm need to create boxplots to analyse and evaluate test results. Since I program in Java this answer convinced me to use JFreeChart. The BoxAndWhisker chart seemed similar to what I wanted. I spent ...
1
vote
1answer
36 views

One-Max fitness function (Java)

Whilst searching on Google about Genetic Algorithms, I came across OneMax Problem, my search showed that this is one of the very first problem that the Genetic Algorithm was applied to. However, I am ...
1
vote
1answer
26 views

Collective randomness of data generated using different seeds

We are generating 5 random numbers for every object we process - this is Java, but the code is pretty easy to follow (docs): ...
0
votes
0answers
14 views

Unexpected results from Reservoir Sampling Implementation, the probabilities seem to be uneven. Is the implementation correct?

I tried to implement Reservoir Sampling, but the tests indicate that the sampling is not random. ...
0
votes
1answer
315 views

Weka java API: Attribute Selection and Cross Validation

Is there a way to perform Attirbute selection(aka feature selection) (regardless of method) only for the training dataset before passing data for Cross Validation ? I currently think that the only ...
0
votes
1answer
37 views

Statistical Commute Analysis in Java

I have a rather large commute every day - it ranges between about an hour and about an hour and half of driving. I have been tracking my driving times, and want to continue to do so. I am capturing ...
2
votes
0answers
43 views

Graphing the usage of legal precedents

I would like to hear recommendations on what tools to use to graph the usage of precedents in a legal court in Brazil. The data is searchable at www.stj.jus.br/SCON/, and in the most recent collegiate ...
0
votes
0answers
49 views

Point Biserial correlation coefficient in Java

I've recently installed Apache Commons Math library to help me with some basic statistics in my project. Basically, what I need is to calculate the correlation coefficient for 2 arrays, which I can ...
1
vote
0answers
89 views

generate frequency distribution from database

In a MySQL database there's a table with a single numeric value column. I want to plot the distribution of these values as a bar chart/histogram with the following ...
1
vote
0answers
203 views

J48 Handling Missing Value with Tree based Imputation

Aloha, currently i have some trouble and question zu implement some kind of special missing value handling in WEKA J48 algorithm using WEKA JAVA API. I want to test the performance of SHAPIRO ...
3
votes
3answers
908 views

Complete machine learning library for Java/Scala

Python is plenty of ML libraries (like the great scikit-learn). Is there any good for java/scala, containing many algos (regression, classification, clustering, cross-validation, feature processing), ...
2
votes
1answer
180 views

Predictive Modeler: How can learning Python and/or Java benefit me?

On a daily basis, I build predictive models (namely, logistic regression and credit scorecard models) using fairly large datasets (typically ~500k records and ~1k candidate variables) to predict ...
0
votes
0answers
169 views

Simulating unfair die with java/R (programming done)

Task : Unfair die(6 sides) is being rolled n times. Probability of 1 is p1, probability of 2 is p2 and so on. Write a computer program, that for given n (n<100), the probability of set ...
0
votes
0answers
17 views

Determining number of clusters with maximum jump or minimum variance

I want to determine a number of clusters, but I don't know how to do it. I want to use kmeans and select a number of cluster with minimum variance or with a maximum jump in variance. I plot variance; ...
0
votes
0answers
48 views

Converting data from classical scaling in MDS

I implemented the classical scaling and obtained the relative coordinates in Java. I want to translate these relative positions, but I am not getting how I should be doing this. This is just like: ...
0
votes
2answers
444 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
50 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?
-1
votes
1answer
27 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
39 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 ...
1
vote
1answer
174 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
314 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
184 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
53 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
524 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
110 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 ...
2
votes
1answer
263 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
39 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
207 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
65 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
864 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
479 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
583 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
79 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
665 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 ...
3
votes
2answers
251 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
339 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
754 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 ...
3
votes
2answers
1k 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
492 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
177 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
267 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
738 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 ...
3
votes
2answers
2k 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
6k 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
549 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. ...
4
votes
1answer
322 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
692 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 ...