目录
当前位置: 首页 > 文档资料 > Edward 中文文档 >

observations.insteval

优质
小牛编辑
128浏览
2023-12-01
insteval(path)

Load the InstEval data set (Bates, Maechler, Bolker, Walker, & others, 2014). It contains 73,421 university lecture evaluations by students at ETH Zurich with a total of 2,972 students, 2,160 professors and lecturers, and several student, lecture, and lecturer attributes.

The data contains the following columns:

FeatureDescription
sstudent
dinstructor
studagestudent age by number of enrolled semesters
lectagelecture age by # of previously rated semesters
service0 if held for a different department than the lecturer’s
main one; else 1
deptdepartment
yrating from 1 for poor to 5 for very good

Args:

  • path: str. Path to directory which either stores file or otherwise file will be downloaded and extracted there. Filename is insteval.csv.

Returns:

Tuple of np.darray x_train with 73,421 rows and 7 columns and dictionary metadata of column headers (feature names).

Bates, D., Maechler, M., Bolker, B., Walker, S., & others. (2014). Lme4: Linear mixed-effects models using Eigen and S4. R Package Version, 1(7), 1–23.