CS代考 COMP20008 2021S2 workshop week 11¶
week11-2021-sem2 COMP20008 2021S2 workshop week 11¶ Copyright By PowCoder代写 加微信 powcoder Chi Squared Feature Selection¶ The following code implements the example in Slide 19 of the Experimental design lecture import pandas as pd import numpy as np import scipy.stats as stats from scipy.stats import chi2_contingency data = pd.DataFrame(np.array([[1,1,1],[1,0,1],[0,1,0],[0,0,0]]), columns=[‘a1′,’a2′,’c’]) features=data[[‘a1′,’a2’]] class_label = data[‘c’] cont_table = […]
CS代考 COMP20008 2021S2 workshop week 11¶ Read More »