Data Science from Scratch

Index of Functions

chapterpagefunction
450vector_add
451vector_subtract
451vector_sum
451scalar_multiply
451vector_mean
451dot
452sum_of_squares
452magnitude
453squared_distance
453distance
453shape
454get_row
454get_column
454make_matrix
454is_diagonal
559mean
559median
560quantile
560mode
561data_range
561de_mean
561variance
562standard_deviation
562interquartile_range
562covariance
563correlation
671random_kid
674uniform_pdf
674uniform_cdf
675normal_pdf
677normal_cdf
678inverse_normal_cdf
679bernoulli_trial
679binomial
679make_hist
782normal_approximation_to_binomial
782normal_probability_below
782normal_probability_above
782normal_probability_between
782normal_probability_outside
782normal_upper_bound
782normal_lower_bound
782normal_two_sided_bounds
784two_sided_p_value
786run_experiment
786reject_fairness
788estimated_parameters
788a_b_test_statistic
789B
789beta_pdf
893sum_of_squares
894difference_quotient
895square
895derivative
896partial_difference_quotient
897estimate_gradient
897step
897sum_of_squares_gradient
898safe
898minimize_batch
899negate
899negate_all
899maximize_batch
899in_random_order
8100minimize_stochastic
8100maximize_stochastic
9111is_video
9112book_info
9113get_year
10122bucketize
10122make_histogram
10122plot_histogram
10123random_normal
10125correlation_matrix
10128parse_row
10128parse_rows_with
10128try_or_none
10129try_parse_field
10129parse_dict
10130picker
10130pluck
10130group_by
10131percent_price_change
10131day_over_day_changes
10133scale
10133rescale
10135de_mean_matrix
10135direction
10136directional_variance_i
10136directional_variance
10136directional_variance_gradient_i
10136directional_variance_gradient
10136first_principal_component
10136first_principal_component_sgd
10137project
10137remove_projection_from_vector
10137remove_projection
10138principal_component_analysis
10138transform_vector
10138transform
11144split_data
11144train_test_split
11146accuracy
11146precision
11146recall
11146f1_score
12152raw_majority_vote
12152majority_vote
12153knn_classify
12157random_point
12157random_distances
13168tokenize
13168count_words
13168word_probabilities
13168spam_probability
13169NaiveBayesClassifier
13171p_spam_given_word
13171drop_final_s
14174predict
14174error
14174sum_of_squared_errors
14174least_squares_fit
14175total_sum_of_squares
14175r_squared
14176squared_error
14176squared_error_gradient
15181error
15181squared_error
15182squared_error_gradient
15182estimate_beta
15183multiple_r_squared
15184bootstrap_sample
15184bootstrap_statistic
15185estimate_sample_beta
15185p_value
15186ridge_penalty
15186squared_error_ridge
15187ridge_penalty_gradient
15187squared_error_ridge_gradient
15187estimate_beta_ridge
15188lasso_penalty
16192logistic
16192logistic_prime
16193logistic_log_likelihood_i
16193logistic_log_likelihood
16194logistic_log_partial_ij
16194logistic_log_gradient_i
16194logistic_log_gradient
17204entropy
17205class_probabilities
17205data_entropy
17205partition_entropy
17207partition_by
17207partition_entropy_by
17209classify
17209build_tree_id3
17211forest_classify
18213step_function
18213perceptron_output
18215sigmoid
18216neuron_output
18217feed_forward
18219backpropagate
18221predict
18222patch
19226KMeans
19230squared_clustering_errors
19234is_leaf
19234get_children
19234get_values
19234cluster_distance
19234get_merge_order
19234bottom_up_cluster
19236generate_clusters
20240text_size
20242fix_unicode
20242generate_using_bigrams
20243generate_using_trigrams
20245expand
20246roll_a_die
20246direct_sample
20247random_y_given_x
20247random_x_given_y
20247gibbs_sample
20247compare_distributions
20249sample_from
20250p_topic_given_document
20250p_word_given_topic
20250topic_weight
20251choose_new_topic
21257shortest_paths_from
21259farness
21260matrix_product_entry
21260matrix_mutiply
21261vector_as_matrix
21261vector_from_matrix
21261matrix_operate
21261find_eigenvector
21262entry_fn
21265page_rank
22268most_popular_new_interests
22269cosine_similarity
22270make_user_interest_vector
22270most_similar_users_to
22271user_based_suggestions
22272most_similar_interests_to
22273item_based_suggestions
23276Table
23277Table.update
23278Table.delete
23279Table.select
23279Table.where
23279Table.limit
23281Table.group_by
23281min_user_id
23282first_letter_of_name
23282average_num_friends
23282enough_friends
23282Table.order_by
23284Table.join
23285count_interests
24290word_count_old
24290wc_mapper
24290wc_reducer
24290word_count
24292map_reduce
24292reduce_values_using
24292values_reducer
24292sum_reducer
24292max_reducer
24292min_reducer
24292count_distinct_reducer
24293data_science_day_mapper
24293words_per_user_mapper
24294most_popular_word_reducer
24294liker_mapper
24295matrix_multiply_mapper
24295matrix_multiply_reducer