Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added train-test split. Changed performance metric to RMSE #98

Merged
merged 5 commits into from
Mar 25, 2019

Conversation

shreyas-kowshik
Copy link
Contributor

It would be better to have a train-test split ratio as in the Knet.jl/housing.jl code.
The performance metric is updated to RMSE now that we have a test set of more than one element.


x = rawdata[1:13,:] |> gpu
y = rawdata[14:14,:] |> gpu

# Normalise the data
x = (x .- mean(x, dims = 2)) ./ std(x, dims = 2)

# The model
# Split into train and test sets
split_index = convert(Int,floor(size(x,2)*split_ratio))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be written as floor(Int, ...)

@MikeInnes
Copy link
Member

Seems like a good idea to me, thanks.

@shreyas-kowshik
Copy link
Contributor Author

@MikeInnes updated the file

@MikeInnes
Copy link
Member

👍 Thanks!

@MikeInnes MikeInnes merged commit 7d820e8 into FluxML:master Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants