Flow
sklearn.linear_model._passive_aggressive.PassiveAggressiveClassifier

sklearn.linear_model._passive_aggressive.PassiveAggressiveClassifier

Visibility: public Uploaded 05-04-2023 by Takeaki Sakabe sklearn==1.2.2 numpy>=1.17.3 scipy>=1.3.2 joblib>=1.1.1 threadpoolctl>=2.0.0 0 runs
0 likes downloaded by 0 people 0 issues 0 downvotes , 0 total downloads
  • openml-python python scikit-learn sklearn sklearn_1.2.2
Issue #Downvotes for this reason By


Loading wiki
Help us complete this description Edit
Passive Aggressive Classifier.

Parameters

CMaximum step size (regularization). Defaults to 1.0default: 1.0
averageWhen set to True, computes the averaged SGD weights and stores the result in the ``coef_`` attribute. If set to an int greater than 1, averaging will begin once the total number of samples seen reaches average. So average=10 will begin averaging after seeing 10 samples .. versionadded:: 0.19 parameter *average* to use weights averaging in SGD.default: false
class_weightPreset for the class_weight fit parameter Weights associated with classes. If not given, all classes are supposed to have weight one The "balanced" mode uses the values of y to automatically adjust weights inversely proportional to class frequencies in the input data as ``n_samples / (n_classes * np.bincount(y))`` .. versionadded:: 0.17 parameter *class_weight* to automatically weight samplesdefault: null
early_stoppingWhether to use early stopping to terminate training when validation score is not improving. If set to True, it will automatically set aside a stratified fraction of training data as validation and terminate training when validation score is not improving by at least tol for n_iter_no_change consecutive epochs .. versionadded:: 0.20default: false
fit_interceptWhether the intercept should be estimated or not. If False, the data is assumed to be already centereddefault: true
lossThe loss function to be used: hinge: equivalent to PA-I in the reference paper squared_hinge: equivalent to PA-II in the reference paperdefault: "hinge"
max_iterThe maximum number of passes over the training data (aka epochs) It only impacts the behavior in the ``fit`` method, and not the :meth:`partial_fit` method .. versionadded:: 0.19default: 1000
n_iter_no_changeNumber of iterations with no improvement to wait before early stopping .. versionadded:: 0.20default: 5
n_jobsThe number of CPUs to use to do the OVA (One Versus All, for multi-class problems) computation ``None`` means 1 unless in a :obj:`joblib.parallel_backend` context ``-1`` means using all processors. See :term:`Glossary ` for more detailsdefault: null
random_stateUsed to shuffle the training data, when ``shuffle`` is set to ``True``. Pass an int for reproducible output across multiple function calls See :term:`Glossary `default: null
shuffleWhether or not the training data should be shuffled after each epochdefault: true
tolThe stopping criterion. If it is not None, the iterations will stop when (loss > previous_loss - tol) .. versionadded:: 0.19default: 0.001
validation_fractionThe proportion of training data to set aside as validation set for early stopping. Must be between 0 and 1 Only used if early_stopping is True .. versionadded:: 0.20default: 0.1
verboseThe verbosity leveldefault: 0
warm_startWhen set to True, reuse the solution of the previous call to fit as initialization, otherwise, just erase the previous solution See :term:`the Glossary ` Repeatedly calling fit or partial_fit when warm_start is True can result in a different solution than when calling fit a single time because of the way the data is shuffleddefault: false

0
Runs

List all runs
Parameter:
Rendering chart
Rendering table