-1
我是theano和神經網絡的新手。我試圖評估平方成本函數summation_over_components_of_y((y-x)**2)
其中x是一個常數,y是一個向量。找到平方成本函數theano
components,updates = theano.scan(fn=lambda coeff, power, free_var:
coeff * (free_var ** power),
outputs_info=None,
sequences=[input_vector, full_range],
non_sequences=x)
我用掃描功能獲取組件。如何獲取所需的值sum((component-constant)**2)
?
歡迎來到StackOverflow!我很確定一些機器學習代碼示例有答案,可以很容易地搜索到。 – Kh40tiK