-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add module 5: Penalty in case of exceeding legal limit #1
Conversation
@@ -45,11 +46,14 @@ createApusDataset <- function(farms = NULL, cultivations, fertilizers, fields_ma | |||
self$farms_count <- 100 | |||
} | |||
|
|||
fines <- dcast(fines, . ~ norm, value.var = 'fine')[, 2:4] | |||
self$fines <- torch::torch_tensor(as.matrix(fines), device = device) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not better to use mget(colnames) ?
fields.fertilizers.dose.n_workable <- doses * fertilizers.p_n_workable | ||
fields.dose.n_workable <- torch::torch_sum(fields.fertilizers.dose.n_workable, dim = 3) | ||
farms.dose.n_workable <- torch::torch_sum( fields.dose.n_workable , dim = 2) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
workable is a bad translation of "werkzaam". For now ok, but for transparency replace by nitrogen fertilizer replacement value (nfrv) or effective nitrogen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and for later update, distinguish between the norms given by government and by the agronomic ones.
@@ -2,5 +2,5 @@ | |||
|
|||
## Added | |||
* Adds `apus` object with the functions `addField`, `trainModel` and `optimizeFertilizerChoice` | |||
* Adds for the cost function module 1 and 2 | |||
* Adds for the cost function module 1,5 and 6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add in brackets behind the number the main topic/issue of the module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LQTM. tensors are difficult to evaluate visually. ;-) A few questions are added, relevant for next steps
Added
Fixed