پایتون، علم داده و مهندسی هوش مصنوعی python تهران آموزش و توسعه نرم افزار
brand_effect = {
"A": 3_500,
"B": 1_500,
"C": 0,
"D": -2_000,
}
brand_bonus = np.array(
[brand_effect[current_brand] for current_brand in brand]
)
automatic_bonus = np.where(
automatic == "yes",
1_200,
0,
)
noise = rng.normal(
loc=0,
scale=1_800,
size=n_samples,
)
4 · 165 ·