This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % x represents series of number of random numbers | |
| x = 100:2000; | |
| % y represents estimated value of PI | |
| y = zeros(1, length(x)); | |
| for i=1:length(x) | |
| inliers = 0; | |
| % get single value from the series | |
| N = x(i); | |
| % generate N random 2-D coordinates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from math import sqrt | |
| from phBot import log, set_training_radius, get_drops, generate_path, move_to, get_position, set_training_position, start_bot, stop_bot, get_monsters | |
| import phBotChat | |
| import QtBind | |
| SCRIPT_ACTIVE = False | |
| FLOOR_INDEX = None | |
| REGISTERED_WALK = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sklearn.tree import export_graphviz | |
| export_graphviz(best_model, | |
| out_file='tree.dot', | |
| feature_names = feature_pd.columns, | |
| class_names = le.classes_, | |
| rounded = True, | |
| proportion = False, | |
| precision = 2, | |
| filled = True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sub groupTest() | |
| ActiveSheet.Outline.SummaryRow = xlAbove | |
| Dim sRng As Range | |
| Dim eRng As Range | |
| Dim rng As Range | |
| Dim currRng As Range | |
| Set currRng = Range("B2") | |
| Set sRng = Range("B2") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import re | |
| import pandas as pd | |
| parser = argparse.ArgumentParser(description="Reformatter app") | |
| parser.add_argument("path", type=str, help="Path to an Excel file") | |
| def uppercase_first_letter(text: str) -> str: |
OlderNewer