# Path: concept_formation/utils.py
# def c4(n):
# def isNumber(n):
# def mean(values):
# def std(values):
# def weighted_choice(choices):
# def most_likely_choice(choices):
# 
# Path: concept_formation/cobweb3.py
# class Cobweb3Tree(CobwebTree):
# class Cobweb3Node(CobwebNode):
#     def __init__(self, scaling=0.5, inner_attr_scaling=True):
#     def clear(self):
#     def get_inner_attr(self, attr):
#     def update_scales(self, instance):
#     def cobweb(self, instance):
#     def ifit(self, instance):
#     def increment_counts(self, instance):
#     def update_counts_from_node(self, node):
#     def expected_correct_guesses(self):
#     def pretty_print(self, depth=0):
#     def get_weighted_values(self, attr, allow_none=True):
#     def predict(self, attr, choice_fn="most likely", allow_none=True):
#     def probability(self, attr, val):
#     def log_likelihood(self, child_leaf):
#     def is_exact_match(self, instance):
#     def output_json(self):


import random
import pytest
from concept_formation import utils
from concept_formation.cobweb3 import ContinuousValue
from __future__ import print_function, unicode_literals
from __future__ import absolute_import, division





def test_most_likely_choice():
    n = 100
    some_list = [('a', 0.99), ('b', 0.01)]

# Path: concept_formation/utils.py
# def c4(n):
# def isNumber(n):
# def mean(values):
# def std(values):
# def weighted_choice(choices):
# def most_likely_choice(choices):
# 
# Path: concept_formation/cobweb3.py
# class Cobweb3Tree(CobwebTree):
# class Cobweb3Node(CobwebNode):
#     def __init__(self, scaling=0.5, inner_attr_scaling=True):
#     def clear(self):
#     def get_inner_attr(self, attr):
#     def update_scales(self, instance):
#     def cobweb(self, instance):
#     def ifit(self, instance):
#     def increment_counts(self, instance):
#     def update_counts_from_node(self, node):
#     def expected_correct_guesses(self):
#     def pretty_print(self, depth=0):
#     def get_weighted_values(self, attr, allow_none=True):
#     def predict(self, attr, choice_fn="most likely", allow_none=True):
#     def probability(self, attr, val):
#     def log_likelihood(self, child_leaf):
#     def is_exact_match(self, instance):
#     def output_json(self):


# Path: concept_formation/tests/test_utils.py
import random
import pytest
from concept_formation import utils
from concept_formation.cobweb3 import ContinuousValue

from __future__ import print_function, unicode_literals
from __future__ import absolute_import, division





def test_most_likely_choice():
    n = 100
    some_list = [('a', 0.99), ('b', 0.01)]

    vals = [utils.most_likely_choice(some_list) for i in range(n)]