Logistic Regression Classifier Training Jobs
Train a regularized logistic regression model for text classification.
Legacy Product
Train a regularized logistic regression model for text classification.
Use this job when you have training data and you want to train a logistic regression model to classify text into groups.
The ID for this Spark job. Used in the API to reference this job. Allowed characters: a-z, A-Z, dash (-) and underscore (_)
<= 128 characters
Match pattern: ^[A-Za-z0-9_\-]+$
Solr Collection containing labeled training data
>= 1 characters
Solr field containing text training data. Data from multiple fields with different weights can be combined by specifying them as field1:weight1,field2:weight2 etc.
>= 1 characters
Spark-compatible format which training data comes in (like 'solr', 'hdfs', 'file', 'parquet' etc)
Default: solr
Allowed values: solrhdfsfileparquet
Additional spark dataframe loading configuration options
Solr query to use when loading training data
>= 3 characters
Default: *:*
Fraction of the training data to use
<= 1
exclusiveMaximum: false
Default: 1
For any deterministic pseudorandom number generation
Default: 1234
Solr Collection to store model-labeled data to
Solr fields to load (comma-delimited). Leave empty to allow the job to select the required fields to load at runtime.
Identifier for the model to be trained; uses the supplied Spark Job ID if not provided.
>= 1 characters
LuceneTextAnalyzer schema for tokenization (JSON-encoded)
Default: { "analyzers": [{ "name": "StdTokLowerStop","charFilters": [ { "type": "htmlstrip" } ],"tokenizer": { "type": "standard" },"filters": [{ "type": "lowercase" },{ "type": "KStem" },{ "type": "length", "min": "2", "max": "32767" },{ "type": "fusionstop", "ignoreCase": "true", "format": "snowball", "words": "org/apache/lucene/analysis/snowball/english_stop.txt" }] }],"fields": [{ "regex": ".+", "analyzer": "StdTokLowerStop" } ]}
Weight vector components based on inverse document frequency
Default: true
Word-vector dimensionality to represent text (choose > 0 to use)
exclusiveMinimum: false
Default: 0
The window size (context words from [-window, window]) for word2vec
>= 3
exclusiveMinimum: false
Default: 5
Sets the maximum length (in words) of each sentence in the input data. Any sentence longer than this threshold will be divided into chunks of up to `maxSentenceLength` size.
>= 3
exclusiveMinimum: false
Default: 1000
Maximum number of iterations of the word2vec training
Default: 1
Training parameter for word2vec convergence (change at your own peril)
>= 0.005
exclusiveMinimum: false
Default: 0.025
To be kept, terms must occur in at least this number of documents (if > 1.0), or at least this fraction of documents (if <= 1.0)
Default: 0
To be kept, terms must occur in no more than this number of documents (if > 1.0), or no more than this fraction of documents (if <= 1.0)
Default: 1
p-norm to normalize vectors with (choose -1 to turn normalization off)
Default: 2
Allowed values: -1012
Solr field which will contain labels when classifier is applied to documents
Default: labelPredictedByFusionModel
Minimum number of Spark partitions for training job.
>= 1
exclusiveMinimum: false
Default: 200
Solr field containing labels for training instances (should be single-valued strings)
Perform grid search to optimize hyperparameters
Default: false
Optimize hyperparameter search over one of [binary, multiclass, regression] metrics, or 'none'
Default: none
Allowed values: binarymulticlassregressionnone
Ensure that all classes of training data have the same size
Default: true
Ensure that all classes of training data have at least this many examples
>= 1
exclusiveMinimum: false
Default: 100
Create a label class 'Other' which contains all examples not in a class large enough to train on
Default: true
Label class name for the catch-all 'Other' class
>= 1 characters
Default: Other
Degree of regularization to use when training (L2 lambda parameter if elasticNetWeight = 0)
>= 0.000001
<= 1
exclusiveMinimum: false
exclusiveMaximum: false
Default: 0.01
Value between 0 and 1 to interpolate between ridge (0.0) and lasso (1.0) regression
<= 1
exclusiveMaximum: false
Default: 0
Maximum number of iterations to perform before halting, even if the convergence criterion has not been met.
Default: 10
Default: logistic_regression_classifier_trainer
Allowed values: logistic_regression_classifier_trainer