Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
4e821390
Commit
4e821390
authored
11 years ago
by
Tor Myklebust
Browse files
Options
Downloads
Patches
Plain Diff
Scala stubs for updated Python bindings.
parent
05163057
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala
+13
-13
13 additions, 13 deletions
...la/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala
with
13 additions
and
13 deletions
mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala
+
13
−
13
View file @
4e821390
...
...
@@ -125,9 +125,9 @@ class PythonMLLibAPI extends Serializable {
}
/**
* Java stub for Python mllib LinearRegression
Model
.train()
* Java stub for Python mllib LinearRegression
WithSGD
.train()
*/
def
trainLinearRegressionModel
(
dataBytesJRDD
:
JavaRDD
[
Array
[
Byte
]],
def
trainLinearRegressionModel
WithSGD
(
dataBytesJRDD
:
JavaRDD
[
Array
[
Byte
]],
numIterations
:
Int
,
stepSize
:
Double
,
miniBatchFraction
:
Double
,
initialWeightsBA
:
Array
[
Byte
])
:
java.util.List
[
java.lang.Object
]
=
{
return
trainRegressionModel
((
data
,
initialWeights
)
=>
...
...
@@ -137,9 +137,9 @@ class PythonMLLibAPI extends Serializable {
}
/**
* Java stub for Python mllib Lasso
Model
.train()
* Java stub for Python mllib Lasso
WithSGD
.train()
*/
def
trainLassoModel
(
dataBytesJRDD
:
JavaRDD
[
Array
[
Byte
]],
numIterations
:
Int
,
def
trainLassoModel
WithSGD
(
dataBytesJRDD
:
JavaRDD
[
Array
[
Byte
]],
numIterations
:
Int
,
stepSize
:
Double
,
regParam
:
Double
,
miniBatchFraction
:
Double
,
initialWeightsBA
:
Array
[
Byte
])
:
java.util.List
[
java.lang.Object
]
=
{
return
trainRegressionModel
((
data
,
initialWeights
)
=>
...
...
@@ -149,9 +149,9 @@ class PythonMLLibAPI extends Serializable {
}
/**
* Java stub for Python mllib RidgeRegression
Model
.train()
* Java stub for Python mllib RidgeRegression
WithSGD
.train()
*/
def
trainRidgeModel
(
dataBytesJRDD
:
JavaRDD
[
Array
[
Byte
]],
numIterations
:
Int
,
def
trainRidgeModel
WithSGD
(
dataBytesJRDD
:
JavaRDD
[
Array
[
Byte
]],
numIterations
:
Int
,
stepSize
:
Double
,
regParam
:
Double
,
miniBatchFraction
:
Double
,
initialWeightsBA
:
Array
[
Byte
])
:
java.util.List
[
java.lang.Object
]
=
{
return
trainRegressionModel
((
data
,
initialWeights
)
=>
...
...
@@ -161,9 +161,9 @@ class PythonMLLibAPI extends Serializable {
}
/**
* Java stub for Python mllib SVM
Model
.train()
* Java stub for Python mllib SVM
WithSGD
.train()
*/
def
trainSVMModel
(
dataBytesJRDD
:
JavaRDD
[
Array
[
Byte
]],
numIterations
:
Int
,
def
trainSVMModel
WithSGD
(
dataBytesJRDD
:
JavaRDD
[
Array
[
Byte
]],
numIterations
:
Int
,
stepSize
:
Double
,
regParam
:
Double
,
miniBatchFraction
:
Double
,
initialWeightsBA
:
Array
[
Byte
])
:
java.util.List
[
java.lang.Object
]
=
{
return
trainRegressionModel
((
data
,
initialWeights
)
=>
...
...
@@ -173,9 +173,9 @@ class PythonMLLibAPI extends Serializable {
}
/**
* Java stub for Python mllib LogisticRegression
Model
.train()
* Java stub for Python mllib LogisticRegression
WithSGD
.train()
*/
def
trainLogisticRegressionModel
(
dataBytesJRDD
:
JavaRDD
[
Array
[
Byte
]],
def
trainLogisticRegressionModel
WithSGD
(
dataBytesJRDD
:
JavaRDD
[
Array
[
Byte
]],
numIterations
:
Int
,
stepSize
:
Double
,
miniBatchFraction
:
Double
,
initialWeightsBA
:
Array
[
Byte
])
:
java.util.List
[
java.lang.Object
]
=
{
return
trainRegressionModel
((
data
,
initialWeights
)
=>
...
...
@@ -185,7 +185,7 @@ class PythonMLLibAPI extends Serializable {
}
/**
* Java stub for Python mllib KMeans
Model
.train()
* Java stub for Python mllib KMeans.train()
*/
def
trainKMeansModel
(
dataBytesJRDD
:
JavaRDD
[
Array
[
Byte
]],
k
:
Int
,
maxIterations
:
Int
,
runs
:
Int
,
initializationMode
:
String
)
:
...
...
@@ -207,7 +207,7 @@ class PythonMLLibAPI extends Serializable {
}
/**
* Java stub for Python mllib ALS
Model
.train(). This stub returns a handle
* Java stub for Python mllib ALS.train(). This stub returns a handle
* to the Java object instead of the content of the Java object. Extra care
* needs to be taken in the Python code to ensure it gets freed on exit; see
* the Py4J documentation.
...
...
@@ -219,7 +219,7 @@ class PythonMLLibAPI extends Serializable {
}
/**
* Java stub for Python mllib ALS
Model
.trainImplicit(). This stub returns a
* Java stub for Python mllib ALS.trainImplicit(). This stub returns a
* handle to the Java object instead of the content of the Java object.
* Extra care needs to be taken in the Python code to ensure it gets freed on
* exit; see the Py4J documentation.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment