Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Ok, thank you for clarfication. Approved.
The reason the Dirichlet distribution is used is to make sure each row in the matrix sum to 1. Is that the case for the Haskell translation (don't speka Haskell unfortunately)? If so it should be no problems.
Yes, you can click the "Unlock solutions" button.
This comment is hidden because it contains spoiler information about the solution
They are included under test cases and under example test cases. First I only included them under test cases but just added to example test cases as well.
Now
import codewars_test as test
from solution import weather_prediction
added.
Thank you. Now a reference solution is calculated before user's solution for the random tests.
Task decription updated. No longer asks for rounded values.
Updated. Now tests do not expected rounded values.
Thank you. Description updated.
Thank you! I have updated the parameters with more meaningful names.
Updated
Thank you for github reference. Kata updated.
Yes there was an error. Now it works. Please let me know if some other adjustment needed.
Do you mean insetad of using 4 digits comparison I should use some other comparison method e.g.
abs(a-b) <= max( rel_tol * max(abs(a), abs(b)), abs_tol )
where a and b are the numbers we want to compare? Does one inlcude that approximate comparison in test.assert_equals in that case? Sorry if obvious what I should do.
Loading more items...