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 time | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| def f(n): | |
| x = 1 | |
| for i in range(1, n+1): | |
| for j in range(1, n+1): | |
| x += 1 | |
| return x |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| using MLUtils | |
| using CategoricalArrays | |
| using StatsPlots | |
| using DataFrames | |
| """ | |
| generate_imbalanced_data(num_rows, num_features, majority_ratio) | |
| Generate random imbalanced data with specified number of rows and features, and a majority class ratio. |
NewerOlder