cast the value as scaler and then try to add it to the list. You can try as below: List<int> myIntList = new List<int>(); int retID = Convert.ToInt32(Request["requestedID"]); myIntList.Add(retID);
转onehot #one-hot & standard scaler stages = [] for col in cat_features: # 字符串转成索引 string_index...= StringIndexer(inputCol = col, outputCol = col + 'Index') # 转换为OneHot编码 encoder = OneHotEncoder...+= [string_index, encoder] # 将income转换为索引label_string_index = ...