allfed / animal-feed-model Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
add in for long-term non-resilient food scenario
looks like the default is actually decreasing, this is a bit of a big deal after 120 months (goes down by like 30% or something). Could you verify and fix this issue?
Right now everything happens in one single file. However, it is better coding practice to separate things by what they do. Please split at least the model itself and the dash interface in separate files.
"Pig Breeding" -> "Reduction Pig Breeding".
"Poultry Breeding" -> "Reduction Poultry Breeding".
Please rename things like df2 to something that describes what it contains
These are needed to verify that the code does what you think it does.
If you are unsure about this schedule a call with @florianjehn
bulls = df.loc["Bulls 500 pounds and over", "Qty"]
cattle_on_feed = df.loc["Cattle on feed", "Qty"]
Are defined, but never used. Not sure what the second is, but is it intentional that you don't account for bulls?
The other thing to consider is my method of assigning the feed intensity of an individual animal.
This is probably in the later basket, but I’d like to keep it on the radar.
It is currently top down:
Single_Beef_Cattle_Feed = Total_Beef_Feed/Pop_Beef_Cattle
I’ve gone this way as I think it is useful for understanding the change from ‘business as usual’
Where as it may more appropriate to adopt a bottom up approach for longer term models, as we may expect significant changes in the farming methods as they adopt to new situations. This would be more like:
a cow needs 1-3% of their bodyweight in feed (dry matter equivalent) per day, they can get XX% of this from grass, YY% from harvested forage (hay), and ZZ% from corn/soybean - where XX, YY, and ZZ are informed by the crop modelling.
This kind of feedback loop is not possible with the current feed model implementation… but again, it’s a pretty easy modification.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.