为什么我无法在给定位置存储我的价值

时间:2018-07-18 18:36:49

标签: python pandas dataframe

def apply_sparse_softmax(time_vector):
    non_zeros = ~tf.equal(time_vector, 0.)

    sparse_softmax = tf.nn.softmax(tf.boolean_mask(time_vector, non_zeros))
    new_time_vector = sparse_softmax * tf.cast(non_zeros, tf.float64) # won't work because dimensions are different
    return time_vector

112 NaN

名称:enrolled_university,dtype:float64

191 NaN

名称:enrolled_university,dtype:float64

244 NaN

名称:enrolled_university,dtype:float64

284 NaN

名称:enrolled_university,dtype:float64

315 NaN

名称:enrolled_university,dtype:float64

401 NaN

名称:enrolled_university,dtype:float64

0 个答案:

没有答案