#general

Company-wide announcements and work-based matters

All Messages

Nityesh Agarwal June 17, 2020 at 07:02 PM

Best Git tutorial ever! https://github.com/jlord/git-it-electron

Nityesh Agarwal April 18, 2020 at 07:29 PM

"Create new relevant articles" hai hi nahiii!!!!

Paridhi Agarwal April 16, 2020 at 08:30 AM

scores = {leaf_size: get_mae(leaf_size, train_X, val_X, train_y, val_y) for leaf_size in candidate_max_leaf_nodes}
best_tree_size = min(scores, key=scores.get)

Paridhi Agarwal April 15, 2020 at 03:09 PM

import sys
candidate_max_leaf_nodes = [5, 25, 50, 100, 250, 500]

Write loop to find the ideal tree size from candidate_max_leaf_nodes

min_val = sys.maxsize
for max_leaf_nodes in candidate_max_leaf_nodes:
my_mae = get_mae(max_leaf_nodes, train_X, val_X, train_y, val_y)
if my_mae<min_val:
min_val = my_mae
tree_size = max_leaf_nodes

Store the best value of max_leaf_nodes (it will be either 5, 25, 50, 100, 250 or 500)

best_tree_size = max_leaf_nodes
print(best_tree_size)

Check your answer

step_1.check()

Paridhi Agarwal April 05, 2020 at 08:42 PM

recent_grads['Sample_size'].hist(bins=25, range=(0,5000))

Loading more messages...

Tip: Use quotes for exact phrases, "from:username" to filter search results by user