# evalml.objectives.BalancedAccuracyBinary¶

class `evalml.objectives.``BalancedAccuracyBinary`[source]

Balanced accuracy score for binary classification.

Methods

 `__init__` Initialize self. `calculate_percent_difference` Calculate the percent difference between scores. `decision_function` Apply a learned threshold to predicted probabilities to get predicted classes. `is_defined_for_problem_type` `objective_function` Computes the relative value of the provided predictions compared to the actual labels, according a specified metric `optimize_threshold` Learn a binary classification threshold which optimizes the current objective. `score` Returns a numerical score indicating performance based on the differences between the predicted and actual values. `validate_inputs` Validates the input based on a few simple checks.

## Class Inheritance¶
{"ft_lang_label":"__label__en","ft_lang_prob":0.7111684,"math_prob":0.74213654,"size":749,"snap":"2021-04-2021-17","text_gpt3_token_len":129,"char_repetition_ratio":0.110067114,"word_repetition_ratio":0.0,"special_character_ratio":0.14819759,"punctuation_ratio":0.1010101,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96998,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-27T01:47:41Z\",\"WARC-Record-ID\":\"<urn:uuid:36120601-bce3-48c8-94e3-2879fe0c5ccc>\",\"Content-Length\":\"15554\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d5e4f3e6-4939-49b9-84e5-3c072ecc6c7c>\",\"WARC-Concurrent-To\":\"<urn:uuid:e88b57e4-f07e-4554-a051-c126a2b1fcb2>\",\"WARC-IP-Address\":\"52.38.54.179\",\"WARC-Target-URI\":\"https://evalml.featurelabs.com/en/stable/generated/evalml.objectives.BalancedAccuracyBinary.html\",\"WARC-Payload-Digest\":\"sha1:6XXIQSIYR5U27SJJ5PRWXODQCW4QVTHC\",\"WARC-Block-Digest\":\"sha1:PGQ7UCZEAPFPHF6DWG4TFAGGRGI2RENQ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610704804187.81_warc_CC-MAIN-20210126233034-20210127023034-00517.warc.gz\"}"}