Package

org.apache.spark.examples

ml

Permalink

package ml

Visibility
  1. Public
  2. All

Type Members

  1. class JavaAFTSurvivalRegressionExample extends AnyRef

    Permalink
  2. class JavaALSExample extends AnyRef

    Permalink
  3. class JavaBinarizerExample extends AnyRef

    Permalink
  4. class JavaBisectingKMeansExample extends AnyRef

    Permalink
  5. class JavaBucketedRandomProjectionLSHExample extends AnyRef

    Permalink
  6. class JavaBucketizerExample extends AnyRef

    Permalink
  7. class JavaChiSqSelectorExample extends AnyRef

    Permalink
  8. class JavaCountVectorizerExample extends AnyRef

    Permalink
  9. class JavaDCTExample extends AnyRef

    Permalink
  10. class JavaDecisionTreeClassificationExample extends AnyRef

    Permalink
  11. class JavaDecisionTreeRegressionExample extends AnyRef

    Permalink
  12. class JavaDocument extends Serializable

    Permalink
  13. class JavaElementwiseProductExample extends AnyRef

    Permalink
  14. class JavaEstimatorTransformerParamExample extends AnyRef

    Permalink
  15. class JavaGaussianMixtureExample extends AnyRef

    Permalink
  16. class JavaGeneralizedLinearRegressionExample extends AnyRef

    Permalink
  17. class JavaGradientBoostedTreeClassifierExample extends AnyRef

    Permalink
  18. class JavaGradientBoostedTreeRegressorExample extends AnyRef

    Permalink
  19. class JavaIndexToStringExample extends AnyRef

    Permalink
  20. class JavaInteractionExample extends AnyRef

    Permalink
  21. class JavaIsotonicRegressionExample extends AnyRef

    Permalink
  22. class JavaKMeansExample extends AnyRef

    Permalink
  23. class JavaLDAExample extends AnyRef

    Permalink
  24. class JavaLabeledDocument extends JavaDocument with Serializable

    Permalink
  25. class JavaLinearRegressionWithElasticNetExample extends AnyRef

    Permalink
  26. class JavaLogisticRegressionSummaryExample extends AnyRef

    Permalink
  27. class JavaLogisticRegressionWithElasticNetExample extends AnyRef

    Permalink
  28. class JavaMaxAbsScalerExample extends AnyRef

    Permalink
  29. class JavaMinHashLSHExample extends AnyRef

    Permalink
  30. class JavaMinMaxScalerExample extends AnyRef

    Permalink
  31. class JavaModelSelectionViaCrossValidationExample extends AnyRef

    Permalink
  32. class JavaModelSelectionViaTrainValidationSplitExample extends AnyRef

    Permalink
  33. class JavaMulticlassLogisticRegressionWithElasticNetExample extends AnyRef

    Permalink
  34. class JavaMultilayerPerceptronClassifierExample extends AnyRef

    Permalink
  35. class JavaNGramExample extends AnyRef

    Permalink
  36. class JavaNaiveBayesExample extends AnyRef

    Permalink
  37. class JavaNormalizerExample extends AnyRef

    Permalink
  38. class JavaOneHotEncoderExample extends AnyRef

    Permalink
  39. class JavaOneVsRestExample extends AnyRef

    Permalink
  40. class JavaPCAExample extends AnyRef

    Permalink
  41. class JavaPipelineExample extends AnyRef

    Permalink
  42. class JavaPolynomialExpansionExample extends AnyRef

    Permalink
  43. class JavaQuantileDiscretizerExample extends AnyRef

    Permalink
  44. class JavaRFormulaExample extends AnyRef

    Permalink
  45. class JavaRandomForestClassifierExample extends AnyRef

    Permalink
  46. class JavaRandomForestRegressorExample extends AnyRef

    Permalink
  47. class JavaSQLTransformerExample extends AnyRef

    Permalink
  48. class JavaStandardScalerExample extends AnyRef

    Permalink
  49. class JavaStopWordsRemoverExample extends AnyRef

    Permalink
  50. class JavaStringIndexerExample extends AnyRef

    Permalink
  51. class JavaTfIdfExample extends AnyRef

    Permalink
  52. class JavaTokenizerExample extends AnyRef

    Permalink
  53. class JavaVectorAssemblerExample extends AnyRef

    Permalink
  54. class JavaVectorIndexerExample extends AnyRef

    Permalink
  55. class JavaVectorSlicerExample extends AnyRef

    Permalink
  56. class JavaWord2VecExample extends AnyRef

    Permalink

Value Members

  1. object AFTSurvivalRegressionExample

    Permalink

    An example demonstrating AFTSurvivalRegression.

    An example demonstrating AFTSurvivalRegression. Run with

    bin/run-example ml.AFTSurvivalRegressionExample
  2. object ALSExample

    Permalink

    An example demonstrating ALS.

    An example demonstrating ALS. Run with

    bin/run-example ml.ALSExample
  3. object BinarizerExample

    Permalink
  4. object BisectingKMeansExample

    Permalink

    An example demonstrating bisecting k-means clustering.

    An example demonstrating bisecting k-means clustering. Run with

    bin/run-example ml.BisectingKMeansExample
  5. object BucketedRandomProjectionLSHExample

    Permalink
  6. object BucketizerExample

    Permalink
  7. object ChiSqSelectorExample

    Permalink
  8. object CountVectorizerExample

    Permalink
  9. object DCTExample

    Permalink
  10. object DataFrameExample

    Permalink

    An example of how to use org.apache.spark.sql.DataFrame for ML.

    An example of how to use org.apache.spark.sql.DataFrame for ML. Run with

    ./bin/run-example ml.DataFrameExample [options]

    If you use it as a template to create your own app, please use spark-submit to submit your app.

  11. object DecisionTreeClassificationExample

    Permalink
  12. object DecisionTreeExample

    Permalink

    An example runner for decision trees.

    An example runner for decision trees. Run with

    ./bin/run-example ml.DecisionTreeExample [options]

    Note that Decision Trees can take a large amount of memory. If the run-example command above fails, try running via spark-submit and specifying the amount of memory as at least 1g. For local mode, run

    ./bin/spark-submit --class org.apache.spark.examples.ml.DecisionTreeExample --driver-memory 1g
      [examples JAR path] [options]

    If you use it as a template to create your own app, please use spark-submit to submit your app.

  13. object DecisionTreeRegressionExample

    Permalink
  14. object DeveloperApiExample

    Permalink

    A simple example demonstrating how to write your own learning algorithm using Estimator, Transformer, and other abstractions.

    A simple example demonstrating how to write your own learning algorithm using Estimator, Transformer, and other abstractions. This mimics org.apache.spark.ml.classification.LogisticRegression. Run with

    bin/run-example ml.DeveloperApiExample
  15. object ElementwiseProductExample

    Permalink
  16. object EstimatorTransformerParamExample

    Permalink
  17. object GBTExample

    Permalink

    An example runner for decision trees.

    An example runner for decision trees. Run with

    ./bin/run-example ml.GBTExample [options]

    Decision Trees and ensembles can take a large amount of memory. If the run-example command above fails, try running via spark-submit and specifying the amount of memory as at least 1g. For local mode, run

    ./bin/spark-submit --class org.apache.spark.examples.ml.GBTExample --driver-memory 1g
      [examples JAR path] [options]

    If you use it as a template to create your own app, please use spark-submit to submit your app.

  18. object GaussianMixtureExample

    Permalink

    An example demonstrating Gaussian Mixture Model (GMM).

    An example demonstrating Gaussian Mixture Model (GMM). Run with

    bin/run-example ml.GaussianMixtureExample
  19. object GeneralizedLinearRegressionExample

    Permalink

    An example demonstrating generalized linear regression.

    An example demonstrating generalized linear regression. Run with

    bin/run-example ml.GeneralizedLinearRegressionExample
  20. object GradientBoostedTreeClassifierExample

    Permalink
  21. object GradientBoostedTreeRegressorExample

    Permalink
  22. object IndexToStringExample

    Permalink
  23. object InteractionExample

    Permalink
  24. object IsotonicRegressionExample

    Permalink

    An example demonstrating Isotonic Regression.

    An example demonstrating Isotonic Regression. Run with

    bin/run-example ml.IsotonicRegressionExample
  25. object KMeansExample

    Permalink

    An example demonstrating k-means clustering.

    An example demonstrating k-means clustering. Run with

    bin/run-example ml.KMeansExample
  26. object LDAExample

    Permalink

    An example demonstrating LDA.

    An example demonstrating LDA. Run with

    bin/run-example ml.LDAExample
  27. object LinearRegressionExample

    Permalink

    An example runner for linear regression with elastic-net (mixing L1/L2) regularization.

    An example runner for linear regression with elastic-net (mixing L1/L2) regularization. Run with

    bin/run-example ml.LinearRegressionExample [options]

    A synthetic dataset can be found at data/mllib/sample_linear_regression_data.txt which can be trained by

    bin/run-example ml.LinearRegressionExample --regParam 0.15 --elasticNetParam 1.0 \
      data/mllib/sample_linear_regression_data.txt

    If you use it as a template to create your own app, please use spark-submit to submit your app.

  28. object LinearRegressionWithElasticNetExample

    Permalink
  29. object LogisticRegressionExample

    Permalink

    An example runner for logistic regression with elastic-net (mixing L1/L2) regularization.

    An example runner for logistic regression with elastic-net (mixing L1/L2) regularization. Run with

    bin/run-example ml.LogisticRegressionExample [options]

    A synthetic dataset can be found at data/mllib/sample_libsvm_data.txt which can be trained by

    bin/run-example ml.LogisticRegressionExample --regParam 0.3 --elasticNetParam 0.8 \
      data/mllib/sample_libsvm_data.txt

    If you use it as a template to create your own app, please use spark-submit to submit your app.

  30. object LogisticRegressionSummaryExample

    Permalink
  31. object LogisticRegressionWithElasticNetExample

    Permalink
  32. object MaxAbsScalerExample

    Permalink
  33. object MinHashLSHExample

    Permalink
  34. object MinMaxScalerExample

    Permalink
  35. object ModelSelectionViaCrossValidationExample

    Permalink

    A simple example demonstrating model selection using CrossValidator.

    A simple example demonstrating model selection using CrossValidator. This example also demonstrates how Pipelines are Estimators.

    Run with

    bin/run-example ml.ModelSelectionViaCrossValidationExample
  36. object ModelSelectionViaTrainValidationSplitExample

    Permalink

    A simple example demonstrating model selection using TrainValidationSplit.

    A simple example demonstrating model selection using TrainValidationSplit.

    Run with

    bin/run-example ml.ModelSelectionViaTrainValidationSplitExample
  37. object MulticlassLogisticRegressionWithElasticNetExample

    Permalink
  38. object MultilayerPerceptronClassifierExample

    Permalink

    An example for Multilayer Perceptron Classification.

  39. object NGramExample

    Permalink
  40. object NaiveBayesExample

    Permalink
  41. object NormalizerExample

    Permalink
  42. object OneHotEncoderExample

    Permalink
  43. object OneVsRestExample

    Permalink

    An example of Multiclass to Binary Reduction with One Vs Rest, using Logistic Regression as the base classifier.

    An example of Multiclass to Binary Reduction with One Vs Rest, using Logistic Regression as the base classifier. Run with

    ./bin/run-example ml.OneVsRestExample
  44. object PCAExample

    Permalink
  45. object PipelineExample

    Permalink
  46. object PolynomialExpansionExample

    Permalink
  47. object QuantileDiscretizerExample

    Permalink
  48. object RFormulaExample

    Permalink
  49. object RandomForestClassifierExample

    Permalink
  50. object RandomForestExample

    Permalink

    An example runner for decision trees.

    An example runner for decision trees. Run with

    ./bin/run-example ml.RandomForestExample [options]

    Decision Trees and ensembles can take a large amount of memory. If the run-example command above fails, try running via spark-submit and specifying the amount of memory as at least 1g. For local mode, run

    ./bin/spark-submit --class org.apache.spark.examples.ml.RandomForestExample --driver-memory 1g
      [examples JAR path] [options]

    If you use it as a template to create your own app, please use spark-submit to submit your app.

  51. object RandomForestRegressorExample

    Permalink
  52. object SQLTransformerExample

    Permalink
  53. object StandardScalerExample

    Permalink
  54. object StopWordsRemoverExample

    Permalink
  55. object StringIndexerExample

    Permalink
  56. object TfIdfExample

    Permalink
  57. object TokenizerExample

    Permalink
  58. object UnaryTransformerExample

    Permalink

    An example demonstrating creating a custom org.apache.spark.ml.Transformer using the UnaryTransformer abstraction.

    An example demonstrating creating a custom org.apache.spark.ml.Transformer using the UnaryTransformer abstraction.

    Run with

    bin/run-example ml.UnaryTransformerExample
  59. object VectorAssemblerExample

    Permalink
  60. object VectorIndexerExample

    Permalink
  61. object VectorSlicerExample

    Permalink
  62. object Word2VecExample

    Permalink

Ungrouped