docstr: Tests AutoML in the breast cancer (binary classification)
  without and with sample weight
docstr_tok: ["Tests","AutoML","in","the","breast","cancer","(","binary","classification",")","without","and","with","sample","weight"]
code: def test_breast_cancer_dataset(self):
      """Tests AutoML in the breast cancer (binary classification)
      without and with sample weight"""
      model = AutoML(
          explain_level=0,
          verbose=1,
          random_state=1,
          results_path=self.automl_dir,
      )
      score_1 = model.fit(
          breast_cancer.data, breast_cancer.target
      ).score(breast_cancer.data, breast_cancer.target)
      self.assertGreater(score_1, 0.5)
  
      shutil.rmtree(self.automl_dir, ignore_errors=True)
      model = AutoML(
          explain_level=0,
          verbose=1,
          random_state=1,
          results_path=self.automl_dir,
      )
      sample_weight = np.ones(breast_cancer.data.shape[0])
      score_2 = model.fit(
          breast_cancer.data,
          breast_cancer.target,
          sample_weight=sample_weight,
      ).score(
          breast_cancer.data,
          breast_cancer.target,
          sample_weight=sample_weight,
      )
      assert_almost_equal(score_1, score_2)
  
file_path: mljar-supervised/tests/tests_automl/test_automl_sample_weight.py
imports: import os
  import unittest
  import tempfile
  import json
  import numpy
  import pandas
  import shutil
  from numpy.testing import assert_almost_equal
  from sklearn import datasets
  from sklearn.pipeline import make_pipeline
  from sklearn.decomposition import PCA
  from supervised import AutoML
  from supervised.exceptions import AutoMLException
label_desc: Use image node_id 4 for calling the AutoMLSampleWeightTest obj's underlying member method code with example usage: obj.test_breast_cancer_dataset() without return types