machinelearning icon indicating copy to clipboard operation
machinelearning copied to clipboard

Taxi fare dataset is almost 50MB

Open Ivanidzo4ka opened this issue 8 years ago • 11 comments

These two files is almost 50mb altogether https://github.com/dotnet/machinelearning/blob/master/test/data/taxi-fare-test.csv https://github.com/dotnet/machinelearning/blob/master/test/data/taxi-fare-train.csv

https://github.com/dotnet/machinelearning/pull/170 allows to download files from external sources. Can we move these files to separate repository and clean history?

Ivanidzo4ka avatar May 22 '18 19:05 Ivanidzo4ka

Hmmm. This means an interactive rebase of master. What a nightmare. If we have to we have to I guess.

Would have been nice had this been caught in PR. Maybe whatever bot we're using to validate/build releases can flag a PR if it contains huge files like this, going forward.

TomFinley avatar May 22 '18 23:05 TomFinley

I'd checkout: https://help.github.com/articles/removing-sensitive-data-from-a-repository/

justinormont avatar May 22 '18 23:05 justinormont

Hi Justin! Yup, I know how to do it more or less, but here's what I'm imagining. One way or another this will involve repointing master to a completely different commit id. Once that happens, people that are attempting to write PRs against master will have an interesting experience when they attempt to merge master. (I think rebases might be fine.)

Which is why I'd love to get to the point where there's some check. I'd love to give the people that have the power to approve the PR some "help" so they get a hint that not all is as it should be, since I guess the line change count being north of 2 million didn't do it. Maybe a big red flag somewhere?

TomFinley avatar May 23 '18 03:05 TomFinley

@OliaG @aditidugar These datasets were checked-in by you. Can you please clarify why you need 1 million rows for training a sample and another 1 million rows for testing it?

CC: @asthana86 @terrajobst

codemzs avatar May 23 '18 03:05 codemzs

@TomFinley that PR was right before the release, they should not have been merged with that size, however now they are there and we will find a way to clean them up.

shauheen avatar May 23 '18 14:05 shauheen

Yep, @shauheen covered it - we can certainly trim this down if necessary, it wasn't something that we consciously considered before the initial check in.

aditidugar-zz avatar May 23 '18 16:05 aditidugar-zz

Should we create another repository like "dotnet/machinelearning/datasets" and store this files there? I have code to download files and put them into repo, but I need place to keep this files, since many of them either behind authorization page, or get slightly modified in order to make them more readable.

Ivanidzo4ka avatar May 23 '18 17:05 Ivanidzo4ka

As @TomFinley said, removing the file from the repo won't have an impact on size unless we rebase the offending commit out. Which is doable but it requires all developers to effectively force reset their local histories to match master, which is what Tom described as a nightmare. It's doable, but it won't be a low-impact change for the team. I'm fairly good at Git and I'm happy to help here, but it will require coordination across all developers who have forks/clones, including with the internal VSTS mirror.

terrajobst avatar May 23 '18 17:05 terrajobst

I can help here too, if we decide to move forward with this.

The internal VSTS mirror would need some work, but it wouldn't take more than 10/15 minutes. (Note: We've done it before ;))

eerhardt avatar May 23 '18 19:05 eerhardt

Should we create another repository like "dotnet/machinelearning/datasets" and store this files there?

I think that was the plan we came up with on https://github.com/dotnet/machinelearning/pull/198#issuecomment-391077914. I guess the general approaches are:

  • Small data set that we can redistribute: Place in dotnet/machinelearning.
  • Large data set that we can redistribute: Place in a separate repo. Can download at build time using mechanism in #170 from GitHub URL. If needed for a sample app, make a NuGet package from that repo so it can be restored into the sample app's project.
  • Data set we can't redistribute: Use mechanism in #170.

eerhardt avatar May 23 '18 19:05 eerhardt

So since no one want to rebase master and we figure out ways to provide test files into repo (through nuget or download during build) I'm closing this issue.

Ivanidzo4ka avatar Oct 18 '18 16:10 Ivanidzo4ka