Re: MLlib-a problem of example code for L-BFGS

2014-06-16 Thread DB Tsai
Hi Congrui,

I mean create your own TrainMLOR.scala with all the code provided in
the example, and have it under package org.apache.spark.mllib

Sincerely,

DB Tsai
---
My Blog: https://www.dbtsai.com
LinkedIn: https://www.linkedin.com/in/dbtsai


On Fri, Jun 13, 2014 at 1:50 PM, Congrui Yi
fixed-term.congrui...@us.bosch.com wrote:
 Hi DB,

 Thank you for the help! I'm new to this, so could you give a bit more
 details how this could be done?

 Sincerely,

 Congrui Yi





 --
 View this message in context: 
 http://apache-spark-user-list.1001560.n3.nabble.com/MLlib-a-problem-of-example-code-for-L-BFGS-tp7589p7596.html
 Sent from the Apache Spark User List mailing list archive at Nabble.com.


RE: MLlib-a problem of example code for L-BFGS

2014-06-16 Thread Congrui Yi
Thank you! I'll try it out.

From: DB Tsai-2 [via Apache Spark User List] 
[mailto:ml-node+s1001560n7686...@n3.nabble.com]
Sent: Monday, June 16, 2014 11:32 AM
To: FIXED-TERM Yi Congrui (CR/RTC1.3-NA)
Subject: Re: MLlib-a problem of example code for L-BFGS

Hi Congrui,

I mean create your own TrainMLOR.scala with all the code provided in
the example, and have it under package org.apache.spark.mllib

Sincerely,

DB Tsai
---
My Blog: https://www.dbtsai.com
LinkedIn: https://www.linkedin.com/in/dbtsai


On Fri, Jun 13, 2014 at 1:50 PM, Congrui Yi
[hidden email]/user/SendEmail.jtp?type=nodenode=7686i=0 wrote:

 Hi DB,

 Thank you for the help! I'm new to this, so could you give a bit more
 details how this could be done?

 Sincerely,

 Congrui Yi





 --
 View this message in context: 
 http://apache-spark-user-list.1001560.n3.nabble.com/MLlib-a-problem-of-example-code-for-L-BFGS-tp7589p7596.html
 Sent from the Apache Spark User List mailing list archive at Nabble.com.


If you reply to this email, your message will be added to the discussion below:
http://apache-spark-user-list.1001560.n3.nabble.com/MLlib-a-problem-of-example-code-for-L-BFGS-tp7589p7686.html
To unsubscribe from MLlib-a problem of example code for L-BFGS, click 
herehttp://apache-spark-user-list.1001560.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=7589code=Zml4ZWQtdGVybS5Db25ncnVpLllpQHVzLmJvc2NoLmNvbXw3NTg5fDEwMDQ0NzI0MDQ=.
NAMLhttp://apache-spark-user-list.1001560.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/MLlib-a-problem-of-example-code-for-L-BFGS-tp7589p7689.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: MLlib-a problem of example code for L-BFGS

2014-06-13 Thread DB Tsai
Hi Congrui,

Since it's private in mllib package, one workaround will be write your
code in scala file with mllib package in order to use the constructor
of LogisticRegressionModel.

Sincerely,

DB Tsai
---
My Blog: https://www.dbtsai.com
LinkedIn: https://www.linkedin.com/in/dbtsai


On Fri, Jun 13, 2014 at 11:50 AM, Congrui Yi
fixed-term.congrui...@us.bosch.com wrote:
 Hi All,

 I'm new to Spark. Just tried out the example code on Spark website for
 L-BFGS. But the code val model = new LogisticRegressionModel(... gave me
 an error:

 console:19: error: constructor LogisticRegressionModel in class
 LogisticRegres
 sionModel cannot be accessed in class $iwC
  val model = new LogisticRegressionModel(
   ^

 Then I checked the source code on github about the definition of the class
 LogisticRegressionModel. It says:


 It appears the reason is it has private[mllib] in the definition so access
 is restricted and it does not have a constructor either.

 So that's a contradiction.

 Thanks,

 BR,

 Congrui



 --
 View this message in context: 
 http://apache-spark-user-list.1001560.n3.nabble.com/MLlib-a-problem-of-example-code-for-L-BFGS-tp7589.html
 Sent from the Apache Spark User List mailing list archive at Nabble.com.


Re: MLlib-a problem of example code for L-BFGS

2014-06-13 Thread Congrui Yi
Hi DB,

Thank you for the help! I'm new to this, so could you give a bit more
details how this could be done? 

Sincerely,

Congrui Yi





--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/MLlib-a-problem-of-example-code-for-L-BFGS-tp7589p7596.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.