blob: 9fa97bb15c91889c0b0049011f9dd6c3ffce4b2c [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>GBTClassificationModel &#8212; PySpark 3.4.3 documentation</title>
<link rel="stylesheet" href="../../_static/css/index.73d71520a4ca3b99cfee5594769eaaae.css">
<link rel="stylesheet"
href="../../_static/vendor/fontawesome/5.13.0/css/all.min.css">
<link rel="preload" as="font" type="font/woff2" crossorigin
href="../../_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2">
<link rel="preload" as="font" type="font/woff2" crossorigin
href="../../_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2">
<link rel="stylesheet"
href="../../_static/vendor/open-sans_all/1.44.1/index.css">
<link rel="stylesheet"
href="../../_static/vendor/lato_latin-ext/1.44.1/index.css">
<link rel="stylesheet" href="../../_static/basic.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../_static/copybutton.css" />
<link rel="stylesheet" type="text/css" href="../../_static/css/pyspark.css" />
<link rel="preload" as="script" href="../../_static/js/index.3da636dd464baa7582d2.js">
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
<script src="../../_static/jquery.js"></script>
<script src="../../_static/underscore.js"></script>
<script src="../../_static/doctools.js"></script>
<script src="../../_static/language_data.js"></script>
<script src="../../_static/clipboard.min.js"></script>
<script src="../../_static/copybutton.js"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/x-mathjax-config">MathJax.Hub.Config({"tex2jax": {"inlineMath": [["$", "$"], ["\\(", "\\)"]], "processEscapes": true, "ignoreClass": "document", "processClass": "math|output_area"}})</script>
<link rel="canonical" href="https://spark.apache.org/docs/latest/api/python/reference/api/pyspark.ml.classification.GBTClassificationModel.html" />
<link rel="search" title="Search" href="../../search.html" />
<link rel="next" title="RandomForestClassifier" href="pyspark.ml.classification.RandomForestClassifier.html" />
<link rel="prev" title="GBTClassifier" href="pyspark.ml.classification.GBTClassifier.html" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="docsearch:language" content="en" />
</head>
<body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80">
<nav class="navbar navbar-light navbar-expand-lg bg-light fixed-top bd-navbar" id="navbar-main">
<div class="container-xl">
<a class="navbar-brand" href="../../index.html">
<img src="../../_static/spark-logo-reverse.png" class="logo" alt="logo" />
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="navbar-menu" class="col-lg-9 collapse navbar-collapse">
<ul id="navbar-main-elements" class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link" href="../../index.html">Overview</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="../../getting_started/index.html">Getting Started</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="../../user_guide/index.html">User Guides</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="../index.html">API Reference</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="../../development/index.html">Development</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="../../migration_guide/index.html">Migration Guides</a>
</li>
</ul>
<ul class="navbar-nav">
</ul>
</div>
</div>
</nav>
<div class="container-xl">
<div class="row">
<div class="col-12 col-md-3 bd-sidebar"><form class="bd-search d-flex align-items-center" action="../../search.html" method="get">
<i class="icon fas fa-search"></i>
<input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" >
</form>
<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
<div class="bd-toc-item active">
<ul class="nav bd-sidenav">
<li class="">
<a href="../pyspark.sql/index.html">Spark SQL</a>
</li>
<li class="">
<a href="../pyspark.pandas/index.html">Pandas API on Spark</a>
</li>
<li class="">
<a href="../pyspark.ss/index.html">Structured Streaming</a>
</li>
<li class="active">
<a href="../pyspark.ml.html">MLlib (DataFrame-based)</a>
</li>
<li class="">
<a href="../pyspark.streaming.html">Spark Streaming (Legacy)</a>
</li>
<li class="">
<a href="../pyspark.mllib.html">MLlib (RDD-based)</a>
</li>
<li class="">
<a href="../pyspark.html">Spark Core</a>
</li>
<li class="">
<a href="../pyspark.resource.html">Resource Management</a>
</li>
<li class="">
<a href="../pyspark.errors.html">Errors</a>
</li>
</ul>
</nav>
</div>
<div class="d-none d-xl-block col-xl-2 bd-toc">
<nav id="bd-toc-nav">
<ul class="nav section-nav flex-column">
</ul>
</nav>
</div>
<main class="col-12 col-md-9 col-xl-7 py-md-5 pl-md-5 pr-md-4 bd-content" role="main">
<div>
<div class="section" id="gbtclassificationmodel">
<h1>GBTClassificationModel<a class="headerlink" href="#gbtclassificationmodel" title="Permalink to this headline"></a></h1>
<dl class="py class">
<dt id="pyspark.ml.classification.GBTClassificationModel">
<em class="property">class </em><code class="sig-prename descclassname">pyspark.ml.classification.</code><code class="sig-name descname">GBTClassificationModel</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">java_model</span><span class="p">:</span> <span class="n">Optional<span class="p">[</span>JavaObject<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/pyspark/ml/classification.html#GBTClassificationModel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel" title="Permalink to this definition"></a></dt>
<dd><p>Model fitted by GBTClassifier.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 1.4.0.</span></p>
</div>
<p class="rubric">Methods</p>
<table class="longtable table autosummary">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.clear" title="pyspark.ml.classification.GBTClassificationModel.clear"><code class="xref py py-obj docutils literal notranslate"><span class="pre">clear</span></code></a>(param)</p></td>
<td><p>Clears a param from the param map if it has been explicitly set.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.copy" title="pyspark.ml.classification.GBTClassificationModel.copy"><code class="xref py py-obj docutils literal notranslate"><span class="pre">copy</span></code></a>([extra])</p></td>
<td><p>Creates a copy of this instance with the same uid and some extra params.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.evaluateEachIteration" title="pyspark.ml.classification.GBTClassificationModel.evaluateEachIteration"><code class="xref py py-obj docutils literal notranslate"><span class="pre">evaluateEachIteration</span></code></a>(dataset)</p></td>
<td><p>Method to compute error or loss for every iteration of gradient boosting.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.explainParam" title="pyspark.ml.classification.GBTClassificationModel.explainParam"><code class="xref py py-obj docutils literal notranslate"><span class="pre">explainParam</span></code></a>(param)</p></td>
<td><p>Explains a single param and returns its name, doc, and optional default value and user-supplied value in a string.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.explainParams" title="pyspark.ml.classification.GBTClassificationModel.explainParams"><code class="xref py py-obj docutils literal notranslate"><span class="pre">explainParams</span></code></a>()</p></td>
<td><p>Returns the documentation of all params with their optionally default values and user-supplied values.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.extractParamMap" title="pyspark.ml.classification.GBTClassificationModel.extractParamMap"><code class="xref py py-obj docutils literal notranslate"><span class="pre">extractParamMap</span></code></a>([extra])</p></td>
<td><p>Extracts the embedded default param values and user-supplied values, and then merges them with extra values from input into a flat param map, where the latter value is used if there exist conflicts, i.e., with ordering: default param values &lt; user-supplied values &lt; extra.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getCacheNodeIds" title="pyspark.ml.classification.GBTClassificationModel.getCacheNodeIds"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getCacheNodeIds</span></code></a>()</p></td>
<td><p>Gets the value of cacheNodeIds or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getCheckpointInterval" title="pyspark.ml.classification.GBTClassificationModel.getCheckpointInterval"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getCheckpointInterval</span></code></a>()</p></td>
<td><p>Gets the value of checkpointInterval or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getFeatureSubsetStrategy" title="pyspark.ml.classification.GBTClassificationModel.getFeatureSubsetStrategy"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getFeatureSubsetStrategy</span></code></a>()</p></td>
<td><p>Gets the value of featureSubsetStrategy or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getFeaturesCol" title="pyspark.ml.classification.GBTClassificationModel.getFeaturesCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getFeaturesCol</span></code></a>()</p></td>
<td><p>Gets the value of featuresCol or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getImpurity" title="pyspark.ml.classification.GBTClassificationModel.getImpurity"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getImpurity</span></code></a>()</p></td>
<td><p>Gets the value of impurity or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getLabelCol" title="pyspark.ml.classification.GBTClassificationModel.getLabelCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getLabelCol</span></code></a>()</p></td>
<td><p>Gets the value of labelCol or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getLeafCol" title="pyspark.ml.classification.GBTClassificationModel.getLeafCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getLeafCol</span></code></a>()</p></td>
<td><p>Gets the value of leafCol or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getLossType" title="pyspark.ml.classification.GBTClassificationModel.getLossType"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getLossType</span></code></a>()</p></td>
<td><p>Gets the value of lossType or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getMaxBins" title="pyspark.ml.classification.GBTClassificationModel.getMaxBins"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getMaxBins</span></code></a>()</p></td>
<td><p>Gets the value of maxBins or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getMaxDepth" title="pyspark.ml.classification.GBTClassificationModel.getMaxDepth"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getMaxDepth</span></code></a>()</p></td>
<td><p>Gets the value of maxDepth or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getMaxIter" title="pyspark.ml.classification.GBTClassificationModel.getMaxIter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getMaxIter</span></code></a>()</p></td>
<td><p>Gets the value of maxIter or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getMaxMemoryInMB" title="pyspark.ml.classification.GBTClassificationModel.getMaxMemoryInMB"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getMaxMemoryInMB</span></code></a>()</p></td>
<td><p>Gets the value of maxMemoryInMB or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getMinInfoGain" title="pyspark.ml.classification.GBTClassificationModel.getMinInfoGain"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getMinInfoGain</span></code></a>()</p></td>
<td><p>Gets the value of minInfoGain or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getMinInstancesPerNode" title="pyspark.ml.classification.GBTClassificationModel.getMinInstancesPerNode"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getMinInstancesPerNode</span></code></a>()</p></td>
<td><p>Gets the value of minInstancesPerNode or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getMinWeightFractionPerNode" title="pyspark.ml.classification.GBTClassificationModel.getMinWeightFractionPerNode"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getMinWeightFractionPerNode</span></code></a>()</p></td>
<td><p>Gets the value of minWeightFractionPerNode or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getOrDefault" title="pyspark.ml.classification.GBTClassificationModel.getOrDefault"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getOrDefault</span></code></a>(param)</p></td>
<td><p>Gets the value of a param in the user-supplied param map or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getParam" title="pyspark.ml.classification.GBTClassificationModel.getParam"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getParam</span></code></a>(paramName)</p></td>
<td><p>Gets a param by its name.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getPredictionCol" title="pyspark.ml.classification.GBTClassificationModel.getPredictionCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getPredictionCol</span></code></a>()</p></td>
<td><p>Gets the value of predictionCol or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getProbabilityCol" title="pyspark.ml.classification.GBTClassificationModel.getProbabilityCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getProbabilityCol</span></code></a>()</p></td>
<td><p>Gets the value of probabilityCol or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getRawPredictionCol" title="pyspark.ml.classification.GBTClassificationModel.getRawPredictionCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getRawPredictionCol</span></code></a>()</p></td>
<td><p>Gets the value of rawPredictionCol or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getSeed" title="pyspark.ml.classification.GBTClassificationModel.getSeed"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getSeed</span></code></a>()</p></td>
<td><p>Gets the value of seed or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getStepSize" title="pyspark.ml.classification.GBTClassificationModel.getStepSize"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getStepSize</span></code></a>()</p></td>
<td><p>Gets the value of stepSize or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getSubsamplingRate" title="pyspark.ml.classification.GBTClassificationModel.getSubsamplingRate"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getSubsamplingRate</span></code></a>()</p></td>
<td><p>Gets the value of subsamplingRate or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getThresholds" title="pyspark.ml.classification.GBTClassificationModel.getThresholds"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getThresholds</span></code></a>()</p></td>
<td><p>Gets the value of thresholds or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getValidationIndicatorCol" title="pyspark.ml.classification.GBTClassificationModel.getValidationIndicatorCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getValidationIndicatorCol</span></code></a>()</p></td>
<td><p>Gets the value of validationIndicatorCol or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getValidationTol" title="pyspark.ml.classification.GBTClassificationModel.getValidationTol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getValidationTol</span></code></a>()</p></td>
<td><p>Gets the value of validationTol or its default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getWeightCol" title="pyspark.ml.classification.GBTClassificationModel.getWeightCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getWeightCol</span></code></a>()</p></td>
<td><p>Gets the value of weightCol or its default value.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.hasDefault" title="pyspark.ml.classification.GBTClassificationModel.hasDefault"><code class="xref py py-obj docutils literal notranslate"><span class="pre">hasDefault</span></code></a>(param)</p></td>
<td><p>Checks whether a param has a default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.hasParam" title="pyspark.ml.classification.GBTClassificationModel.hasParam"><code class="xref py py-obj docutils literal notranslate"><span class="pre">hasParam</span></code></a>(paramName)</p></td>
<td><p>Tests whether this instance contains a param with a given (string) name.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.isDefined" title="pyspark.ml.classification.GBTClassificationModel.isDefined"><code class="xref py py-obj docutils literal notranslate"><span class="pre">isDefined</span></code></a>(param)</p></td>
<td><p>Checks whether a param is explicitly set by user or has a default value.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.isSet" title="pyspark.ml.classification.GBTClassificationModel.isSet"><code class="xref py py-obj docutils literal notranslate"><span class="pre">isSet</span></code></a>(param)</p></td>
<td><p>Checks whether a param is explicitly set by user.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.load" title="pyspark.ml.classification.GBTClassificationModel.load"><code class="xref py py-obj docutils literal notranslate"><span class="pre">load</span></code></a>(path)</p></td>
<td><p>Reads an ML instance from the input path, a shortcut of <cite>read().load(path)</cite>.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.predict" title="pyspark.ml.classification.GBTClassificationModel.predict"><code class="xref py py-obj docutils literal notranslate"><span class="pre">predict</span></code></a>(value)</p></td>
<td><p>Predict label for the given features.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.predictLeaf" title="pyspark.ml.classification.GBTClassificationModel.predictLeaf"><code class="xref py py-obj docutils literal notranslate"><span class="pre">predictLeaf</span></code></a>(value)</p></td>
<td><p>Predict the indices of the leaves corresponding to the feature vector.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.predictProbability" title="pyspark.ml.classification.GBTClassificationModel.predictProbability"><code class="xref py py-obj docutils literal notranslate"><span class="pre">predictProbability</span></code></a>(value)</p></td>
<td><p>Predict the probability of each class given the features.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.predictRaw" title="pyspark.ml.classification.GBTClassificationModel.predictRaw"><code class="xref py py-obj docutils literal notranslate"><span class="pre">predictRaw</span></code></a>(value)</p></td>
<td><p>Raw prediction for each possible label.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.read" title="pyspark.ml.classification.GBTClassificationModel.read"><code class="xref py py-obj docutils literal notranslate"><span class="pre">read</span></code></a>()</p></td>
<td><p>Returns an MLReader instance for this class.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.save" title="pyspark.ml.classification.GBTClassificationModel.save"><code class="xref py py-obj docutils literal notranslate"><span class="pre">save</span></code></a>(path)</p></td>
<td><p>Save this ML instance to the given path, a shortcut of ‘write().save(path)’.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.set" title="pyspark.ml.classification.GBTClassificationModel.set"><code class="xref py py-obj docutils literal notranslate"><span class="pre">set</span></code></a>(param, value)</p></td>
<td><p>Sets a parameter in the embedded param map.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.setFeaturesCol" title="pyspark.ml.classification.GBTClassificationModel.setFeaturesCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">setFeaturesCol</span></code></a>(value)</p></td>
<td><p>Sets the value of <a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.featuresCol" title="pyspark.ml.classification.GBTClassificationModel.featuresCol"><code class="xref py py-attr docutils literal notranslate"><span class="pre">featuresCol</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.setLeafCol" title="pyspark.ml.classification.GBTClassificationModel.setLeafCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">setLeafCol</span></code></a>(value)</p></td>
<td><p>Sets the value of <a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.leafCol" title="pyspark.ml.classification.GBTClassificationModel.leafCol"><code class="xref py py-attr docutils literal notranslate"><span class="pre">leafCol</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.setPredictionCol" title="pyspark.ml.classification.GBTClassificationModel.setPredictionCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">setPredictionCol</span></code></a>(value)</p></td>
<td><p>Sets the value of <a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.predictionCol" title="pyspark.ml.classification.GBTClassificationModel.predictionCol"><code class="xref py py-attr docutils literal notranslate"><span class="pre">predictionCol</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.setProbabilityCol" title="pyspark.ml.classification.GBTClassificationModel.setProbabilityCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">setProbabilityCol</span></code></a>(value)</p></td>
<td><p>Sets the value of <a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.probabilityCol" title="pyspark.ml.classification.GBTClassificationModel.probabilityCol"><code class="xref py py-attr docutils literal notranslate"><span class="pre">probabilityCol</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.setRawPredictionCol" title="pyspark.ml.classification.GBTClassificationModel.setRawPredictionCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">setRawPredictionCol</span></code></a>(value)</p></td>
<td><p>Sets the value of <a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.rawPredictionCol" title="pyspark.ml.classification.GBTClassificationModel.rawPredictionCol"><code class="xref py py-attr docutils literal notranslate"><span class="pre">rawPredictionCol</span></code></a>.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.setThresholds" title="pyspark.ml.classification.GBTClassificationModel.setThresholds"><code class="xref py py-obj docutils literal notranslate"><span class="pre">setThresholds</span></code></a>(value)</p></td>
<td><p>Sets the value of <a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.thresholds" title="pyspark.ml.classification.GBTClassificationModel.thresholds"><code class="xref py py-attr docutils literal notranslate"><span class="pre">thresholds</span></code></a>.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.transform" title="pyspark.ml.classification.GBTClassificationModel.transform"><code class="xref py py-obj docutils literal notranslate"><span class="pre">transform</span></code></a>(dataset[, params])</p></td>
<td><p>Transforms the input dataset with optional parameters.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.write" title="pyspark.ml.classification.GBTClassificationModel.write"><code class="xref py py-obj docutils literal notranslate"><span class="pre">write</span></code></a>()</p></td>
<td><p>Returns an MLWriter instance for this ML instance.</p></td>
</tr>
</tbody>
</table>
<p class="rubric">Attributes</p>
<table class="longtable table autosummary">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.cacheNodeIds" title="pyspark.ml.classification.GBTClassificationModel.cacheNodeIds"><code class="xref py py-obj docutils literal notranslate"><span class="pre">cacheNodeIds</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.checkpointInterval" title="pyspark.ml.classification.GBTClassificationModel.checkpointInterval"><code class="xref py py-obj docutils literal notranslate"><span class="pre">checkpointInterval</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.featureImportances" title="pyspark.ml.classification.GBTClassificationModel.featureImportances"><code class="xref py py-obj docutils literal notranslate"><span class="pre">featureImportances</span></code></a></p></td>
<td><p>Estimate of the importance of each feature.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.featureSubsetStrategy" title="pyspark.ml.classification.GBTClassificationModel.featureSubsetStrategy"><code class="xref py py-obj docutils literal notranslate"><span class="pre">featureSubsetStrategy</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.featuresCol" title="pyspark.ml.classification.GBTClassificationModel.featuresCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">featuresCol</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.getNumTrees" title="pyspark.ml.classification.GBTClassificationModel.getNumTrees"><code class="xref py py-obj docutils literal notranslate"><span class="pre">getNumTrees</span></code></a></p></td>
<td><p>Number of trees in ensemble.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.impurity" title="pyspark.ml.classification.GBTClassificationModel.impurity"><code class="xref py py-obj docutils literal notranslate"><span class="pre">impurity</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.labelCol" title="pyspark.ml.classification.GBTClassificationModel.labelCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">labelCol</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.leafCol" title="pyspark.ml.classification.GBTClassificationModel.leafCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">leafCol</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.lossType" title="pyspark.ml.classification.GBTClassificationModel.lossType"><code class="xref py py-obj docutils literal notranslate"><span class="pre">lossType</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.maxBins" title="pyspark.ml.classification.GBTClassificationModel.maxBins"><code class="xref py py-obj docutils literal notranslate"><span class="pre">maxBins</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.maxDepth" title="pyspark.ml.classification.GBTClassificationModel.maxDepth"><code class="xref py py-obj docutils literal notranslate"><span class="pre">maxDepth</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.maxIter" title="pyspark.ml.classification.GBTClassificationModel.maxIter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">maxIter</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.maxMemoryInMB" title="pyspark.ml.classification.GBTClassificationModel.maxMemoryInMB"><code class="xref py py-obj docutils literal notranslate"><span class="pre">maxMemoryInMB</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.minInfoGain" title="pyspark.ml.classification.GBTClassificationModel.minInfoGain"><code class="xref py py-obj docutils literal notranslate"><span class="pre">minInfoGain</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.minInstancesPerNode" title="pyspark.ml.classification.GBTClassificationModel.minInstancesPerNode"><code class="xref py py-obj docutils literal notranslate"><span class="pre">minInstancesPerNode</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.minWeightFractionPerNode" title="pyspark.ml.classification.GBTClassificationModel.minWeightFractionPerNode"><code class="xref py py-obj docutils literal notranslate"><span class="pre">minWeightFractionPerNode</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.numClasses" title="pyspark.ml.classification.GBTClassificationModel.numClasses"><code class="xref py py-obj docutils literal notranslate"><span class="pre">numClasses</span></code></a></p></td>
<td><p>Number of classes (values which the label can take).</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.numFeatures" title="pyspark.ml.classification.GBTClassificationModel.numFeatures"><code class="xref py py-obj docutils literal notranslate"><span class="pre">numFeatures</span></code></a></p></td>
<td><p>Returns the number of features the model was trained on.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.params" title="pyspark.ml.classification.GBTClassificationModel.params"><code class="xref py py-obj docutils literal notranslate"><span class="pre">params</span></code></a></p></td>
<td><p>Returns all params ordered by name.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.predictionCol" title="pyspark.ml.classification.GBTClassificationModel.predictionCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">predictionCol</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.probabilityCol" title="pyspark.ml.classification.GBTClassificationModel.probabilityCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">probabilityCol</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.rawPredictionCol" title="pyspark.ml.classification.GBTClassificationModel.rawPredictionCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">rawPredictionCol</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.seed" title="pyspark.ml.classification.GBTClassificationModel.seed"><code class="xref py py-obj docutils literal notranslate"><span class="pre">seed</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.stepSize" title="pyspark.ml.classification.GBTClassificationModel.stepSize"><code class="xref py py-obj docutils literal notranslate"><span class="pre">stepSize</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.subsamplingRate" title="pyspark.ml.classification.GBTClassificationModel.subsamplingRate"><code class="xref py py-obj docutils literal notranslate"><span class="pre">subsamplingRate</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.supportedFeatureSubsetStrategies" title="pyspark.ml.classification.GBTClassificationModel.supportedFeatureSubsetStrategies"><code class="xref py py-obj docutils literal notranslate"><span class="pre">supportedFeatureSubsetStrategies</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.supportedImpurities" title="pyspark.ml.classification.GBTClassificationModel.supportedImpurities"><code class="xref py py-obj docutils literal notranslate"><span class="pre">supportedImpurities</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.supportedLossTypes" title="pyspark.ml.classification.GBTClassificationModel.supportedLossTypes"><code class="xref py py-obj docutils literal notranslate"><span class="pre">supportedLossTypes</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.thresholds" title="pyspark.ml.classification.GBTClassificationModel.thresholds"><code class="xref py py-obj docutils literal notranslate"><span class="pre">thresholds</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.toDebugString" title="pyspark.ml.classification.GBTClassificationModel.toDebugString"><code class="xref py py-obj docutils literal notranslate"><span class="pre">toDebugString</span></code></a></p></td>
<td><p>Full description of model.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.totalNumNodes" title="pyspark.ml.classification.GBTClassificationModel.totalNumNodes"><code class="xref py py-obj docutils literal notranslate"><span class="pre">totalNumNodes</span></code></a></p></td>
<td><p>Total number of nodes, summed over all trees in the ensemble.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.treeWeights" title="pyspark.ml.classification.GBTClassificationModel.treeWeights"><code class="xref py py-obj docutils literal notranslate"><span class="pre">treeWeights</span></code></a></p></td>
<td><p>Return the weights for each tree</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.trees" title="pyspark.ml.classification.GBTClassificationModel.trees"><code class="xref py py-obj docutils literal notranslate"><span class="pre">trees</span></code></a></p></td>
<td><p>Trees in this ensemble.</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.validationIndicatorCol" title="pyspark.ml.classification.GBTClassificationModel.validationIndicatorCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">validationIndicatorCol</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.validationTol" title="pyspark.ml.classification.GBTClassificationModel.validationTol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">validationTol</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.weightCol" title="pyspark.ml.classification.GBTClassificationModel.weightCol"><code class="xref py py-obj docutils literal notranslate"><span class="pre">weightCol</span></code></a></p></td>
<td><p></p></td>
</tr>
</tbody>
</table>
<p class="rubric">Methods Documentation</p>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.clear">
<code class="sig-name descname">clear</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">param</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyspark.ml.param.Param.html#pyspark.ml.param.Param" title="pyspark.ml.param.Param">pyspark.ml.param.Param</a></span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.clear" title="Permalink to this definition"></a></dt>
<dd><p>Clears a param from the param map if it has been explicitly set.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.copy">
<code class="sig-name descname">copy</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">extra</span><span class="p">:</span> <span class="n">Optional<span class="p">[</span>ParamMap<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span> &#x2192; JP<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.copy" title="Permalink to this definition"></a></dt>
<dd><p>Creates a copy of this instance with the same uid and some
extra params. This implementation first calls Params.copy and
then make a copy of the companion Java pipeline component with
extra params. So both the Python wrapper and the Java pipeline
component get copied.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><dl class="simple">
<dt><strong>extra</strong><span class="classifier">dict, optional</span></dt><dd><p>Extra parameters to copy to the new instance</p>
</dd>
</dl>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><dl class="simple">
<dt><code class="xref py py-class docutils literal notranslate"><span class="pre">JavaParams</span></code></dt><dd><p>Copy of this instance</p>
</dd>
</dl>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.evaluateEachIteration">
<code class="sig-name descname">evaluateEachIteration</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">dataset</span><span class="p">:</span> <span class="n">pyspark.sql.dataframe.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<span class="p">[</span>float<span class="p">]</span><a class="reference internal" href="../../_modules/pyspark/ml/classification.html#GBTClassificationModel.evaluateEachIteration"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.evaluateEachIteration" title="Permalink to this definition"></a></dt>
<dd><p>Method to compute error or loss for every iteration of gradient boosting.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 2.4.0.</span></p>
</div>
<dl class="field-list">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><dl>
<dt><strong>dataset</strong><span class="classifier"><a class="reference internal" href="../pyspark.sql/api/pyspark.sql.DataFrame.html#pyspark.sql.DataFrame" title="pyspark.sql.DataFrame"><code class="xref py py-class docutils literal notranslate"><span class="pre">pyspark.sql.DataFrame</span></code></a></span></dt><dd><p>Test dataset to evaluate model on.</p>
</dd>
</dl>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.explainParam">
<code class="sig-name descname">explainParam</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">param</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>str<span class="p">, </span><a class="reference internal" href="pyspark.ml.param.Param.html#pyspark.ml.param.Param" title="pyspark.ml.param.Param">pyspark.ml.param.Param</a><span class="p">]</span></span></em><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.explainParam" title="Permalink to this definition"></a></dt>
<dd><p>Explains a single param and returns its name, doc, and optional
default value and user-supplied value in a string.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.explainParams">
<code class="sig-name descname">explainParams</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.explainParams" title="Permalink to this definition"></a></dt>
<dd><p>Returns the documentation of all params with their optionally
default values and user-supplied values.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.extractParamMap">
<code class="sig-name descname">extractParamMap</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">extra</span><span class="p">:</span> <span class="n">Optional<span class="p">[</span>ParamMap<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span> &#x2192; ParamMap<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.extractParamMap" title="Permalink to this definition"></a></dt>
<dd><p>Extracts the embedded default param values and user-supplied
values, and then merges them with extra values from input into
a flat param map, where the latter value is used if there exist
conflicts, i.e., with ordering: default param values &lt;
user-supplied values &lt; extra.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><dl class="simple">
<dt><strong>extra</strong><span class="classifier">dict, optional</span></dt><dd><p>extra param values</p>
</dd>
</dl>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><dl class="simple">
<dt>dict</dt><dd><p>merged param map</p>
</dd>
</dl>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getCacheNodeIds">
<code class="sig-name descname">getCacheNodeIds</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getCacheNodeIds" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of cacheNodeIds or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getCheckpointInterval">
<code class="sig-name descname">getCheckpointInterval</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getCheckpointInterval" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of checkpointInterval or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getFeatureSubsetStrategy">
<code class="sig-name descname">getFeatureSubsetStrategy</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getFeatureSubsetStrategy" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of featureSubsetStrategy or its default value.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 1.4.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getFeaturesCol">
<code class="sig-name descname">getFeaturesCol</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getFeaturesCol" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of featuresCol or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getImpurity">
<code class="sig-name descname">getImpurity</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getImpurity" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of impurity or its default value.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 1.4.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getLabelCol">
<code class="sig-name descname">getLabelCol</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getLabelCol" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of labelCol or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getLeafCol">
<code class="sig-name descname">getLeafCol</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getLeafCol" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of leafCol or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getLossType">
<code class="sig-name descname">getLossType</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getLossType" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of lossType or its default value.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 1.4.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getMaxBins">
<code class="sig-name descname">getMaxBins</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getMaxBins" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of maxBins or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getMaxDepth">
<code class="sig-name descname">getMaxDepth</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getMaxDepth" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of maxDepth or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getMaxIter">
<code class="sig-name descname">getMaxIter</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getMaxIter" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of maxIter or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getMaxMemoryInMB">
<code class="sig-name descname">getMaxMemoryInMB</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getMaxMemoryInMB" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of maxMemoryInMB or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getMinInfoGain">
<code class="sig-name descname">getMinInfoGain</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getMinInfoGain" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of minInfoGain or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getMinInstancesPerNode">
<code class="sig-name descname">getMinInstancesPerNode</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getMinInstancesPerNode" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of minInstancesPerNode or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getMinWeightFractionPerNode">
<code class="sig-name descname">getMinWeightFractionPerNode</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getMinWeightFractionPerNode" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of minWeightFractionPerNode or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getOrDefault">
<code class="sig-name descname">getOrDefault</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">param</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>str<span class="p">, </span><a class="reference internal" href="pyspark.ml.param.Param.html#pyspark.ml.param.Param" title="pyspark.ml.param.Param">pyspark.ml.param.Param</a><span class="p">[</span>T<span class="p">]</span><span class="p">]</span></span></em><span class="sig-paren">)</span> &#x2192; Union<span class="p">[</span>Any<span class="p">, </span>T<span class="p">]</span><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getOrDefault" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of a param in the user-supplied param map or its
default value. Raises an error if neither is set.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getParam">
<code class="sig-name descname">getParam</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">paramName</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; <a class="reference internal" href="pyspark.ml.param.Param.html#pyspark.ml.param.Param" title="pyspark.ml.param.Param">pyspark.ml.param.Param</a><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getParam" title="Permalink to this definition"></a></dt>
<dd><p>Gets a param by its name.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getPredictionCol">
<code class="sig-name descname">getPredictionCol</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getPredictionCol" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of predictionCol or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getProbabilityCol">
<code class="sig-name descname">getProbabilityCol</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getProbabilityCol" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of probabilityCol or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getRawPredictionCol">
<code class="sig-name descname">getRawPredictionCol</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getRawPredictionCol" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of rawPredictionCol or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getSeed">
<code class="sig-name descname">getSeed</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getSeed" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of seed or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getStepSize">
<code class="sig-name descname">getStepSize</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getStepSize" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of stepSize or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getSubsamplingRate">
<code class="sig-name descname">getSubsamplingRate</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getSubsamplingRate" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of subsamplingRate or its default value.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 1.4.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getThresholds">
<code class="sig-name descname">getThresholds</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<span class="p">[</span>float<span class="p">]</span><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getThresholds" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of thresholds or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getValidationIndicatorCol">
<code class="sig-name descname">getValidationIndicatorCol</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getValidationIndicatorCol" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of validationIndicatorCol or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getValidationTol">
<code class="sig-name descname">getValidationTol</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getValidationTol" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of validationTol or its default value.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 3.0.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.getWeightCol">
<code class="sig-name descname">getWeightCol</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getWeightCol" title="Permalink to this definition"></a></dt>
<dd><p>Gets the value of weightCol or its default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.hasDefault">
<code class="sig-name descname">hasDefault</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">param</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>str<span class="p">, </span><a class="reference internal" href="pyspark.ml.param.Param.html#pyspark.ml.param.Param" title="pyspark.ml.param.Param">pyspark.ml.param.Param</a><span class="p">[</span>Any<span class="p">]</span><span class="p">]</span></span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.hasDefault" title="Permalink to this definition"></a></dt>
<dd><p>Checks whether a param has a default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.hasParam">
<code class="sig-name descname">hasParam</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">paramName</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.hasParam" title="Permalink to this definition"></a></dt>
<dd><p>Tests whether this instance contains a param with a given
(string) name.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.isDefined">
<code class="sig-name descname">isDefined</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">param</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>str<span class="p">, </span><a class="reference internal" href="pyspark.ml.param.Param.html#pyspark.ml.param.Param" title="pyspark.ml.param.Param">pyspark.ml.param.Param</a><span class="p">[</span>Any<span class="p">]</span><span class="p">]</span></span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.isDefined" title="Permalink to this definition"></a></dt>
<dd><p>Checks whether a param is explicitly set by user or has
a default value.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.isSet">
<code class="sig-name descname">isSet</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">param</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>str<span class="p">, </span><a class="reference internal" href="pyspark.ml.param.Param.html#pyspark.ml.param.Param" title="pyspark.ml.param.Param">pyspark.ml.param.Param</a><span class="p">[</span>Any<span class="p">]</span><span class="p">]</span></span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.isSet" title="Permalink to this definition"></a></dt>
<dd><p>Checks whether a param is explicitly set by user.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.load">
<em class="property">classmethod </em><code class="sig-name descname">load</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">path</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; RL<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.load" title="Permalink to this definition"></a></dt>
<dd><p>Reads an ML instance from the input path, a shortcut of <cite>read().load(path)</cite>.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.predict">
<code class="sig-name descname">predict</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">value</span><span class="p">:</span> <span class="n">T</span></em><span class="sig-paren">)</span> &#x2192; float<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.predict" title="Permalink to this definition"></a></dt>
<dd><p>Predict label for the given features.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 3.0.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.predictLeaf">
<code class="sig-name descname">predictLeaf</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">value</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyspark.ml.linalg.Vector.html#pyspark.ml.linalg.Vector" title="pyspark.ml.linalg.Vector">pyspark.ml.linalg.Vector</a></span></em><span class="sig-paren">)</span> &#x2192; float<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.predictLeaf" title="Permalink to this definition"></a></dt>
<dd><p>Predict the indices of the leaves corresponding to the feature vector.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 3.0.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.predictProbability">
<code class="sig-name descname">predictProbability</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">value</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyspark.ml.linalg.Vector.html#pyspark.ml.linalg.Vector" title="pyspark.ml.linalg.Vector">pyspark.ml.linalg.Vector</a></span></em><span class="sig-paren">)</span> &#x2192; <a class="reference internal" href="pyspark.ml.linalg.Vector.html#pyspark.ml.linalg.Vector" title="pyspark.ml.linalg.Vector">pyspark.ml.linalg.Vector</a><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.predictProbability" title="Permalink to this definition"></a></dt>
<dd><p>Predict the probability of each class given the features.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 3.0.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.predictRaw">
<code class="sig-name descname">predictRaw</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">value</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyspark.ml.linalg.Vector.html#pyspark.ml.linalg.Vector" title="pyspark.ml.linalg.Vector">pyspark.ml.linalg.Vector</a></span></em><span class="sig-paren">)</span> &#x2192; <a class="reference internal" href="pyspark.ml.linalg.Vector.html#pyspark.ml.linalg.Vector" title="pyspark.ml.linalg.Vector">pyspark.ml.linalg.Vector</a><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.predictRaw" title="Permalink to this definition"></a></dt>
<dd><p>Raw prediction for each possible label.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 3.0.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.read">
<em class="property">classmethod </em><code class="sig-name descname">read</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; pyspark.ml.util.JavaMLReader<span class="p">[</span>RL<span class="p">]</span><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.read" title="Permalink to this definition"></a></dt>
<dd><p>Returns an MLReader instance for this class.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.save">
<code class="sig-name descname">save</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">path</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.save" title="Permalink to this definition"></a></dt>
<dd><p>Save this ML instance to the given path, a shortcut of ‘write().save(path)’.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.set">
<code class="sig-name descname">set</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">param</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyspark.ml.param.Param.html#pyspark.ml.param.Param" title="pyspark.ml.param.Param">pyspark.ml.param.Param</a></span></em>, <em class="sig-param"><span class="n">value</span><span class="p">:</span> <span class="n">Any</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.set" title="Permalink to this definition"></a></dt>
<dd><p>Sets a parameter in the embedded param map.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.setFeaturesCol">
<code class="sig-name descname">setFeaturesCol</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">value</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; P<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.setFeaturesCol" title="Permalink to this definition"></a></dt>
<dd><p>Sets the value of <a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.featuresCol" title="pyspark.ml.classification.GBTClassificationModel.featuresCol"><code class="xref py py-attr docutils literal notranslate"><span class="pre">featuresCol</span></code></a>.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 3.0.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.setLeafCol">
<code class="sig-name descname">setLeafCol</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">value</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; P<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.setLeafCol" title="Permalink to this definition"></a></dt>
<dd><p>Sets the value of <a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.leafCol" title="pyspark.ml.classification.GBTClassificationModel.leafCol"><code class="xref py py-attr docutils literal notranslate"><span class="pre">leafCol</span></code></a>.</p>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.setPredictionCol">
<code class="sig-name descname">setPredictionCol</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">value</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; P<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.setPredictionCol" title="Permalink to this definition"></a></dt>
<dd><p>Sets the value of <a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.predictionCol" title="pyspark.ml.classification.GBTClassificationModel.predictionCol"><code class="xref py py-attr docutils literal notranslate"><span class="pre">predictionCol</span></code></a>.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 3.0.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.setProbabilityCol">
<code class="sig-name descname">setProbabilityCol</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">value</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; CM<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.setProbabilityCol" title="Permalink to this definition"></a></dt>
<dd><p>Sets the value of <a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.probabilityCol" title="pyspark.ml.classification.GBTClassificationModel.probabilityCol"><code class="xref py py-attr docutils literal notranslate"><span class="pre">probabilityCol</span></code></a>.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 3.0.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.setRawPredictionCol">
<code class="sig-name descname">setRawPredictionCol</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">value</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; P<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.setRawPredictionCol" title="Permalink to this definition"></a></dt>
<dd><p>Sets the value of <a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.rawPredictionCol" title="pyspark.ml.classification.GBTClassificationModel.rawPredictionCol"><code class="xref py py-attr docutils literal notranslate"><span class="pre">rawPredictionCol</span></code></a>.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 3.0.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.setThresholds">
<code class="sig-name descname">setThresholds</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">value</span><span class="p">:</span> <span class="n">List<span class="p">[</span>float<span class="p">]</span></span></em><span class="sig-paren">)</span> &#x2192; CM<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.setThresholds" title="Permalink to this definition"></a></dt>
<dd><p>Sets the value of <a class="reference internal" href="#pyspark.ml.classification.GBTClassificationModel.thresholds" title="pyspark.ml.classification.GBTClassificationModel.thresholds"><code class="xref py py-attr docutils literal notranslate"><span class="pre">thresholds</span></code></a>.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 3.0.0.</span></p>
</div>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.transform">
<code class="sig-name descname">transform</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">dataset</span><span class="p">:</span> <span class="n">pyspark.sql.dataframe.DataFrame</span></em>, <em class="sig-param"><span class="n">params</span><span class="p">:</span> <span class="n">Optional<span class="p">[</span>ParamMap<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span> &#x2192; pyspark.sql.dataframe.DataFrame<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.transform" title="Permalink to this definition"></a></dt>
<dd><p>Transforms the input dataset with optional parameters.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 1.3.0.</span></p>
</div>
<dl class="field-list">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><dl>
<dt><strong>dataset</strong><span class="classifier"><a class="reference internal" href="../pyspark.sql/api/pyspark.sql.DataFrame.html#pyspark.sql.DataFrame" title="pyspark.sql.DataFrame"><code class="xref py py-class docutils literal notranslate"><span class="pre">pyspark.sql.DataFrame</span></code></a></span></dt><dd><p>input dataset</p>
</dd>
<dt><strong>params</strong><span class="classifier">dict, optional</span></dt><dd><p>an optional param map that overrides embedded params.</p>
</dd>
</dl>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><dl class="simple">
<dt><a class="reference internal" href="../pyspark.sql/api/pyspark.sql.DataFrame.html#pyspark.sql.DataFrame" title="pyspark.sql.DataFrame"><code class="xref py py-class docutils literal notranslate"><span class="pre">pyspark.sql.DataFrame</span></code></a></dt><dd><p>transformed dataset</p>
</dd>
</dl>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="pyspark.ml.classification.GBTClassificationModel.write">
<code class="sig-name descname">write</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; pyspark.ml.util.JavaMLWriter<a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.write" title="Permalink to this definition"></a></dt>
<dd><p>Returns an MLWriter instance for this ML instance.</p>
</dd></dl>
<p class="rubric">Attributes Documentation</p>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.cacheNodeIds">
<code class="sig-name descname">cacheNodeIds</code><em class="property"> = Param(parent='undefined', name='cacheNodeIds', doc='If false, the algorithm will pass trees to executors to match instances with nodes. If true, the algorithm will cache node IDs for each instance. Caching can speed up training of deeper trees. Users can set how often should the cache be checkpointed or disable it by setting checkpointInterval.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.cacheNodeIds" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.checkpointInterval">
<code class="sig-name descname">checkpointInterval</code><em class="property"> = Param(parent='undefined', name='checkpointInterval', doc='set checkpoint interval (&gt;= 1) or disable checkpoint (-1). E.g. 10 means that the cache will get checkpointed every 10 iterations. Note: this setting will be ignored if the checkpoint directory is not set in the SparkContext.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.checkpointInterval" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.featureImportances">
<code class="sig-name descname">featureImportances</code><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.featureImportances" title="Permalink to this definition"></a></dt>
<dd><p>Estimate of the importance of each feature.</p>
<p>Each feature’s importance is the average of its importance across all trees in the ensemble
The importance vector is normalized to sum to 1. This method is suggested by Hastie et al.
(Hastie, Tibshirani, Friedman. “The Elements of Statistical Learning, 2nd Edition.” 2001.)
and follows the implementation from scikit-learn.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 2.0.0.</span></p>
</div>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<dl class="simple">
<dt><a class="reference internal" href="pyspark.ml.classification.DecisionTreeClassificationModel.html#pyspark.ml.classification.DecisionTreeClassificationModel.featureImportances" title="pyspark.ml.classification.DecisionTreeClassificationModel.featureImportances"><code class="xref py py-obj docutils literal notranslate"><span class="pre">DecisionTreeClassificationModel.featureImportances</span></code></a></dt><dd></dd>
</dl>
</div>
</dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.featureSubsetStrategy">
<code class="sig-name descname">featureSubsetStrategy</code><em class="property"> = Param(parent='undefined', name='featureSubsetStrategy', doc=&quot;The number of features to consider for splits at each tree node. Supported options: 'auto' (choose automatically for task: If numTrees == 1, set to 'all'. If numTrees &gt; 1 (forest), set to 'sqrt' for classification and to 'onethird' for regression), 'all' (use all features), 'onethird' (use 1/3 of the features), 'sqrt' (use sqrt(number of features)), 'log2' (use log2(number of features)), 'n' (when n is in the range (0, 1.0], use n * number of features. When n is in the range (1, number of features), use n features). default = 'auto'&quot;)</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.featureSubsetStrategy" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.featuresCol">
<code class="sig-name descname">featuresCol</code><em class="property"> = Param(parent='undefined', name='featuresCol', doc='features column name.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.featuresCol" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.getNumTrees">
<code class="sig-name descname">getNumTrees</code><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.getNumTrees" title="Permalink to this definition"></a></dt>
<dd><p>Number of trees in ensemble.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 2.0.0.</span></p>
</div>
</dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.impurity">
<code class="sig-name descname">impurity</code><em class="property"> = Param(parent='undefined', name='impurity', doc='Criterion used for information gain calculation (case-insensitive). Supported options: variance')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.impurity" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.labelCol">
<code class="sig-name descname">labelCol</code><em class="property"> = Param(parent='undefined', name='labelCol', doc='label column name.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.labelCol" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.leafCol">
<code class="sig-name descname">leafCol</code><em class="property"> = Param(parent='undefined', name='leafCol', doc='Leaf indices column name. Predicted leaf index of each instance in each tree by preorder.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.leafCol" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.lossType">
<code class="sig-name descname">lossType</code><em class="property"> = Param(parent='undefined', name='lossType', doc='Loss function which GBT tries to minimize (case-insensitive). Supported options: logistic')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.lossType" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.maxBins">
<code class="sig-name descname">maxBins</code><em class="property"> = Param(parent='undefined', name='maxBins', doc='Max number of bins for discretizing continuous features. Must be &gt;=2 and &gt;= number of categories for any categorical feature.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.maxBins" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.maxDepth">
<code class="sig-name descname">maxDepth</code><em class="property"> = Param(parent='undefined', name='maxDepth', doc='Maximum depth of the tree. (&gt;= 0) E.g., depth 0 means 1 leaf node; depth 1 means 1 internal node + 2 leaf nodes. Must be in range [0, 30].')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.maxDepth" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.maxIter">
<code class="sig-name descname">maxIter</code><em class="property"> = Param(parent='undefined', name='maxIter', doc='max number of iterations (&gt;= 0).')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.maxIter" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.maxMemoryInMB">
<code class="sig-name descname">maxMemoryInMB</code><em class="property"> = Param(parent='undefined', name='maxMemoryInMB', doc='Maximum memory in MB allocated to histogram aggregation. If too small, then 1 node will be split per iteration, and its aggregates may exceed this size.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.maxMemoryInMB" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.minInfoGain">
<code class="sig-name descname">minInfoGain</code><em class="property"> = Param(parent='undefined', name='minInfoGain', doc='Minimum information gain for a split to be considered at a tree node.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.minInfoGain" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.minInstancesPerNode">
<code class="sig-name descname">minInstancesPerNode</code><em class="property"> = Param(parent='undefined', name='minInstancesPerNode', doc='Minimum number of instances each child must have after split. If a split causes the left or right child to have fewer than minInstancesPerNode, the split will be discarded as invalid. Should be &gt;= 1.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.minInstancesPerNode" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.minWeightFractionPerNode">
<code class="sig-name descname">minWeightFractionPerNode</code><em class="property"> = Param(parent='undefined', name='minWeightFractionPerNode', doc='Minimum fraction of the weighted sample count that each child must have after split. If a split causes the fraction of the total weight in the left or right child to be less than minWeightFractionPerNode, the split will be discarded as invalid. Should be in interval [0.0, 0.5).')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.minWeightFractionPerNode" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.numClasses">
<code class="sig-name descname">numClasses</code><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.numClasses" title="Permalink to this definition"></a></dt>
<dd><p>Number of classes (values which the label can take).</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 2.1.0.</span></p>
</div>
</dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.numFeatures">
<code class="sig-name descname">numFeatures</code><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.numFeatures" title="Permalink to this definition"></a></dt>
<dd><p>Returns the number of features the model was trained on. If unknown, returns -1</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 2.1.0.</span></p>
</div>
</dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.params">
<code class="sig-name descname">params</code><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.params" title="Permalink to this definition"></a></dt>
<dd><p>Returns all params ordered by name. The default implementation
uses <code class="xref py py-func docutils literal notranslate"><span class="pre">dir()</span></code> to get all attributes of type
<code class="xref py py-class docutils literal notranslate"><span class="pre">Param</span></code>.</p>
</dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.predictionCol">
<code class="sig-name descname">predictionCol</code><em class="property"> = Param(parent='undefined', name='predictionCol', doc='prediction column name.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.predictionCol" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.probabilityCol">
<code class="sig-name descname">probabilityCol</code><em class="property">: Param[str]</em><em class="property"> = Param(parent='undefined', name='probabilityCol', doc='Column name for predicted class conditional probabilities. Note: Not all models output well-calibrated probability estimates! These probabilities should be treated as confidences, not precise probabilities.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.probabilityCol" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.rawPredictionCol">
<code class="sig-name descname">rawPredictionCol</code><em class="property"> = Param(parent='undefined', name='rawPredictionCol', doc='raw prediction (a.k.a. confidence) column name.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.rawPredictionCol" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.seed">
<code class="sig-name descname">seed</code><em class="property"> = Param(parent='undefined', name='seed', doc='random seed.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.seed" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.stepSize">
<code class="sig-name descname">stepSize</code><em class="property"> = Param(parent='undefined', name='stepSize', doc='Step size (a.k.a. learning rate) in interval (0, 1] for shrinking the contribution of each estimator.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.stepSize" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.subsamplingRate">
<code class="sig-name descname">subsamplingRate</code><em class="property"> = Param(parent='undefined', name='subsamplingRate', doc='Fraction of the training data used for learning each decision tree, in range (0, 1].')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.subsamplingRate" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.supportedFeatureSubsetStrategies">
<code class="sig-name descname">supportedFeatureSubsetStrategies</code><em class="property"> = ['auto', 'all', 'onethird', 'sqrt', 'log2']</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.supportedFeatureSubsetStrategies" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.supportedImpurities">
<code class="sig-name descname">supportedImpurities</code><em class="property"> = ['variance']</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.supportedImpurities" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.supportedLossTypes">
<code class="sig-name descname">supportedLossTypes</code><em class="property"> = ['logistic']</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.supportedLossTypes" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.thresholds">
<code class="sig-name descname">thresholds</code><em class="property"> = Param(parent='undefined', name='thresholds', doc=&quot;Thresholds in multi-class classification to adjust the probability of predicting each class. Array must have length equal to the number of classes, with values &gt; 0, excepting that at most one value may be 0. The class with largest value p/t is predicted, where p is the original probability of that class and t is the class's threshold.&quot;)</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.thresholds" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.toDebugString">
<code class="sig-name descname">toDebugString</code><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.toDebugString" title="Permalink to this definition"></a></dt>
<dd><p>Full description of model.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 2.0.0.</span></p>
</div>
</dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.totalNumNodes">
<code class="sig-name descname">totalNumNodes</code><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.totalNumNodes" title="Permalink to this definition"></a></dt>
<dd><p>Total number of nodes, summed over all trees in the ensemble.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 2.0.0.</span></p>
</div>
</dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.treeWeights">
<code class="sig-name descname">treeWeights</code><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.treeWeights" title="Permalink to this definition"></a></dt>
<dd><p>Return the weights for each tree</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 1.5.0.</span></p>
</div>
</dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.trees">
<code class="sig-name descname">trees</code><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.trees" title="Permalink to this definition"></a></dt>
<dd><p>Trees in this ensemble. Warning: These have null parent Estimators.</p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 2.0.0.</span></p>
</div>
</dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.validationIndicatorCol">
<code class="sig-name descname">validationIndicatorCol</code><em class="property"> = Param(parent='undefined', name='validationIndicatorCol', doc='name of the column that indicates whether each row is for training or for validation. False indicates training; true indicates validation.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.validationIndicatorCol" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.validationTol">
<code class="sig-name descname">validationTol</code><em class="property"> = Param(parent='undefined', name='validationTol', doc='Threshold for stopping early when fit with validation is used. If the error rate on the validation input changes by less than the validationTol, then learning will stop early (before `maxIter`). This parameter is ignored when fit without validation is used.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.validationTol" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py attribute">
<dt id="pyspark.ml.classification.GBTClassificationModel.weightCol">
<code class="sig-name descname">weightCol</code><em class="property"> = Param(parent='undefined', name='weightCol', doc='weight column name. If this is not set or empty, we treat all instance weights as 1.0.')</em><a class="headerlink" href="#pyspark.ml.classification.GBTClassificationModel.weightCol" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</div>
</div>
<div class='prev-next-bottom'>
<a class='left-prev' id="prev-link" href="pyspark.ml.classification.GBTClassifier.html" title="previous page">GBTClassifier</a>
<a class='right-next' id="next-link" href="pyspark.ml.classification.RandomForestClassifier.html" title="next page">RandomForestClassifier</a>
</div>
</main>
</div>
</div>
<script src="../../_static/js/index.3da636dd464baa7582d2.js"></script>
<footer class="footer mt-5 mt-md-0">
<div class="container">
<p>
&copy; Copyright .<br/>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 3.0.4.<br/>
</p>
</div>
</footer>
</body>
</html>