Skip to content

Commit

Permalink
Update regression-example.jl (#339)
Browse files Browse the repository at this point in the history
Fix the call to scatter plot, in the last line. It is commented out, but if a user uncomments it to see a plot of the fit, the fix is needed.
  • Loading branch information
mcreel authored and iblislin committed Nov 22, 2017
1 parent 1f50a14 commit b0556e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/regression-example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ mx.fit(model, optimizer, eval_metric=mx.MSE(), trainprovider, eval_data=evalprov
plotprovider = mx.ArrayDataProvider(:data => ValidationInput, :label => ValidationOutput)
fit = mx.predict(model, plotprovider)
println("correlation between fitted values and true regression line: ", cor(vec(fit), vec(ValidationOutput)))
#scatter(ValidationOutput,fit',w = 3, xlabel="true", ylabel="predicted", title="45º line is what we hope for", show=true)
#scatter(ValidationOutput',fit',w = 3, xlabel="true", ylabel="predicted", title="45º line is what we hope for", show=true)

0 comments on commit b0556e6

Please sign in to comment.