Skip to content

Instantly share code, notes, and snippets.

@soulmachine
Created December 24, 2013 16:03
Show Gist options
  • Save soulmachine/8115115 to your computer and use it in GitHub Desktop.
Save soulmachine/8115115 to your computer and use it in GitHub Desktop.
model的一个成员函数
def debug_print() {
println("debug print")
val C = weightPerLabel.length
val D = weightMatrix(0).length
println("C=" + C + ", D=" + D)
println("weightPerLabel=")
for (i <- 0 until C)
print(math.pow(math.E, weightPerLabel(i)) + " ")
println
println("weightMatrix=")
for (i <- 0 until C) {
for (j <- 0 until D) {
print(math.pow(math.E, weightMatrix(i)(j)) + " ")
}
println()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment