↓ 1 callersFunctioncontains_origin Check if the triangle given by the points A(x1, y1), B(x2, y2), C(x3, y3) contains the origin. >>> contains_origin(-340, 495, -153, -910,
project_euler/problem_102/sol1.py:38
↓ 1 callersFunctionconvert_to_2d Converts 3d point to a 2d drawable point >>> convert_to_2d(1.0, 2.0, 3.0, 10.0, 10.0) (7.6923076923076925, 15.384615384615385) >>>
graphics/vector3_for_2d_rendering.py:13
↓ 1 callersFunctioncovariance >>> covariance([1, 2], [-2, 5, 8], [0.7, 0.3], [0.3, 0.5, 0.2]) -2.7755575615628914e-17
maths/joint_probability_distribution.py:52
↓ 1 callersFunctioncovariance_between_classesFunction to compute the covariance matrix between multiple classes >>> features = np.array([[9, 2, 3], [4, 3, 6], [1, 8, 9]]) >>> labels = np.
machine_learning/dimensionality_reduction.py:60
↓ 1 callersFunctioncovariance_within_classesFunction to compute the covariance matrix inside each class. >>> features = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) >>> labels = np.array(
machine_learning/dimensionality_reduction.py:32
↓ 1 callersFunctioncreate_all_state Helper function to recursively build all combinations. >>> create_all_state(1, 4, 2, [], result := []) >>> result [[1, 2], [1, 3], [
backtracking/all_combinations.py:64
↓ 1 callersFunctioncreate_graph >>> n = 7 >>> source = [0, 0, 1, 2, 3, 3, 4, 4, 6] >>> target = [1, 3, 2, 0, 1, 4, 5, 6, 5] >>> edges = list(zip(source, target))
graphs/tarjans_scc.py:83
↓ 1 callersFunctioncreate_sparse creating sparse table which saves each nodes 2^i-th parent >>> max_node = 6 >>> parent = [[0, 0, 1, 1, 2, 2, 3]] + [[0] * 7 for _ in rang
data_structures/binary_tree/lowest_common_ancestor.py:27
↓ 1 callersFunctiondata_handling >>> data_handling(({'data':'[5.1, 3.5, 1.4, 0.2]','target':([0])})) ('[5.1, 3.5, 1.4, 0.2]', [0]) >>> data_handling( ... {'data':
machine_learning/xgboost_classifier.py:10
↓ 1 callersFunctiondepth_first_search >>> boards = [] >>> depth_first_search([], [], [], boards, 4) >>> for board in boards: ... print(board) ['. Q . . ', '. . . Q
backtracking/n_queens_math.py:82