参数C: 需要编码的字符串。 num_rows: 返回的one-hot 编码的行数。 这用来保证每个数据的行数相同。 """ x = np.zeros((num_rows, len(self.chars))) for i, c in ...
確定! 回上一頁