Skip to content

Instantly share code, notes, and snippets.

View EssamWisam's full-sized avatar

Essam EssamWisam

View GitHub Profile
@EssamWisam
EssamWisam / Q2.py
Created February 5, 2025 05:18
Polynomial Curve
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.
@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.