[R] incremental learning for LOESS time series model

2010-12-20 Thread ying zhang
Hi All,

 

I am currently working on some time series data, I know I can use
LOESS/ARIMA model. 

 

The  data is written to a vector whose length is 1000, which is a queue,
updating every 15 minutes,  

Thus the old data will pop out while the new data push in the vector.

 

I can rerun the whole model on a scheduler, e.g. retrain the model every 15
minutes, that is,  Use the whole 1000 value to train 

The LOESS model, However it is very inefficient, as every time only one
value is insert while another 999 vlaues still same as last time.

 

So how can I achieve better performance?

 

Many thanks

 

Ying

 

 

 


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] an error about JRI

2011-01-04 Thread ying zhang
Hi everyone, I try to run my R script in Java, thus I installed JRI. and run
the example, I am using Eclipse on 64 bits windows 7.  part of the example
code is as follows:

 

public static void main(String[] args) {

System.out.println("Creating Rengine (with arguments)");

Rengine re=new Rengine(args, false, null);

System.out.println("Rengine created, waiting for R");

if (!re.waitForR()) {

System.out.println("Cannot load R");

return;

}

However, everytime I run it. it teminated after print out "Creating Rengine
(with arguments)" never successfully print out "Rengine created, waiting for
R"

 

I do not know what is right argument to input, I have tried to add
"--no-save" under the Program arguments of eclipse run configuration, but
still does not help.

 

any suggestions? Many thanks

 

 

Ying

 


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] rShowMessage "Fatal error: unable to open the base package

2011-01-05 Thread ying zhang
Hi All,

 

As you may know I am trying connect R with java by RJava,  now I run the
examples, I got this error

 

rShowMessage "Fatal error: unable to open the base package

 

 

I am using 64bits windows 7 and eclipse. Any suggestions?

 

 

Many thanks

Ying


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] JRI & plot( )

2011-01-06 Thread ying zhang
Hi Everyone,

 

Thanks a lot for your guys help, I finally got it running, now I can call my
R function from my java code.

 

But there is one problem left.

In my R code , it open a window and plot a curve.

Once running in Java, the window did successfully opened, but nothing
inside, instead of grey color.

 

Any suggestions? Many thanks

 

 

Ying

 

 

 


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] how should I deal with features with variable based on time in Bayesian Network?

2011-01-31 Thread ying zhang
 

Hi All,

 

I would like to apply Bayesian network on some data. However, some of the
features are based on time. E.g.  Number of time he/she visit library.

 

As it can be Total number of this person visits, Average weekly number of
visit, Daily number of visits, or even Number of visits in the last 3 days,
there are all kinds different ways, of course I do not want to include all
these in my network

 

So how should I treat feature like this properly?

 

Many thanks

 

Ying

 


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] can I use the output of a neural network as the fitness function of genetic algorithm?

2011-02-07 Thread ying zhang
Hi Everyone,

 

I need to use genetic algorithm to find the minimum. The problem is,  I
cannot define the fitness function, but I can build a neural network from
the input data and use 

the output as a fitness function.   Can this be done?

 

The other problem is, I know there are a few package in R related to GA.
So far I know all of them take a specific function as fitness function,   is
there any package can

Solve my problem? Many thanks

 

Ying


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] a question about AMORE (newff, sim), pls help

2011-02-09 Thread ying zhang
Hi All,

 

I try to test the neural network package AMORE, I normalized my data first,
the input data is  X [x1,x2,x3] where x1,x2,x3 each is 100 row 1 column
vector. 

the output data Y is 100 row 1 column vector. 

 

my network has  neurons=c(3,2,2,1) which 2 hidden layers, 3 node in the
input layer while 1 in the output layer.   Once the network is trained.  I
use  sim (result$net, z)  to test  the output, 

Here z =c(0.01,0.09,-0.001842388), to my surprise, the simulation result
return is:

 

 

 [,1]

[1,] -0.008967264

[2,] -0.008783412

[3,] -0.008750038

 

How come? It should return one scalar instead of a vector.  Then I tried sim
(result$net, z2)  which z2=c(0.01), the result return is:

 [,1]

[1,] -0.008967264

 

 

As the input should have 3 variables, how come just one input variable can
have output value? And it is same as the first value  in the result above.

 

Am I misunderstand something here? Many thanks

 

 

Ying

 


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.