Skip to content

Instantly share code, notes, and snippets.

View EssamWisam's full-sized avatar

Essam EssamWisam

View GitHub Profile
@EssamWisam
EssamWisam / NaiveOversamlpling.jl
Last active March 31, 2023 12:20
Updated variable names
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.