【机器学习】使用 generative model 和 logistic regression 预测年收入
1 实验目的 使用 Classification 中的 generative model 和 logistic regression,解决二分类问题。根据已有数据,判断该人年收入是否大于 50K。 2 实验环境 操作系统:windows 11 CPU:AMD Ryzen 7 5800H with Radeon Graphics (3.20 GHz) GPU:NVIDIA GeForce GTX 1650 运行环境: Python 3.10.11 pandas 2.1.0 numpy 1.24.2 matplotlib 3.7.1 tqdm 4.66.1 3 数据处理 3.1 数据文件描述 train.csv / test.csv:包含 age, workclass, fnlwgt (总人数), education, education num, marital-status, occupation, relationship, race, sex, capital-gain, capital-loss, hours-per-week, native-country, make over 50K a year or not 这些特征。 ...