Giter VIP home page Giter VIP logo

noms's People

Contributors

noahtren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

noms's Issues

API's not working

<TITLE>Server Connection Closed</TITLE>

Server Connection Closed



Description: The server requested closed the connection before
the transaction was completed.


Add method that will suggest a food to drop or have less of

Often, there are foods in one's diet that would be better left out entirely. That is, no recommendation of complementary foods could help someone who ate 3 Big Macs. The best recommendation is to simply not have the Big Macs.
A method should be added to analyze.py that takes a meal and nutrient dict as arguments and finds the top food that contributes most to the cost. This could be used to recommend that one has less of that food or drop it completely.

Explain Analytics Module in README

Added a module that provides recommendations and uses least squares regression to determine the level of nutrient satisfaction that a given meal has (Σ (rda - val)^2). This should be demonstrated as a test and the README should be updated to reflect its addition.

Refactor print_results into results object __str__() method

It would be more python to make the print for results not need a special method name for users to remember. For example, it would be much more likely for me to try:

search_results = noms.get_results("Raw Broccoli", client)
print(search_results)

And this can be achieved by defining a class for your results and then defining __str__() on that class. Even if that class is simply a simple dict wrapper, it can make your API more friendly to interact with.

Just a thought :)

Move Search Model Methods into Client

The noms.search module seems to depend explicitly on the client. And it seems better to leave these methods up to the client. The usage of doing:

import noms
client = noms.Client("api key")
search_results = noms.get_results("Raw Broccoli", client)

seems a little confusing compared to doing:

import noms
client = noms.Client("api key")
search_results = client.get_results("Raw Broccoli")

Is there a reason you pulled these out into a top level module? It feels more OO to call methods on the client.

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.