Giter Club home page Giter Club logo

musicclassification's People

Contributors

jsheppard95 avatar milestsue93 avatar specialcanadian avatar tlin41390 avatar

Stargazers

 avatar

Watchers

 avatar

musicclassification's Issues

Loading data into MongoDB

Currently loading data into MongoDB manually using the mongo shell. Looks easy enough to do in Python with GridFS. Unclear how useful this is, would be useful if we want to incorporate web-scraping...

GridFS doesn't let you overwrite files

We cannot make simple changes to our csv files within MongoDB after we store them. Turns out overwriting files is not possible using GridFS.

Instead, to overwrite one must delete the file from MongoDB and re-add the new one:

$ mongofiles -d=Music_db list
2021-04-17T21:21:13.925-0700	connected to: mongodb://localhost/
features_3_sec.csv	10713

$ mongofiles -d=Music_db delete features_3_sec.csv
2021-04-17T21:22:11.797-0700	connected to: mongodb://localhost/
2021-04-17T21:22:11.799-0700	successfully deleted all instances of 'features_3_sec.csv' from GridFS

$ mongofiles -d=Music_db put Data_Sample/features_3_sec.csv 
2021-04-17T21:15:09.129-0700	connected to: mongodb://localhost/
2021-04-17T21:15:09.129-0700	adding gridFile: Data_Sample/features_3_sec.csv

2021-04-17T21:15:09.254-0700	added gridFile: Data_Sample/features_3_sec.csv

Worse, turns out whatever you pass to put becomes the file identifier which needs to be used in Python, so this will be the relative path from wherever you run mongofiles. I.e in this case our file identifier is Data_Sample/feature_3_sec.csv, but previously it was just features_3_sec.csv just because we originally ran mongofiles one directory up.

This is not ideal and we should at least automate it so its always consistent. There may also be another option we can pass to mongofiles to specify an identifier that we can use.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.