Draft
Cholesky Decomposition
Loading description...
Linear Algebra
Mathematics
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Relevent external libraries are not properly disabled: https://www.codewars.com/kata/reviews/5f396fcb92a0ec00016e4ceb/groups/5f3b2978dc2d32000115e43d
Yeah.. I'm having a lot of trouble trying to figure out how to do this properly. This is my first kata and I have never had this "reverse experience", it's actually becoming pretty hard to implement a simple kata haha. But anyways, I hope I can solve these issues quickly
... plz think about those who don't have a math training => you should define what that means (or at least provide a link to the definition?)
I will add a link to it, for what I've seen there's no way to write latex equations in Codewars' markdown syntax, what is quite sad.
And since you are here, I've searched a lot on how to forbid modules, and the only things I was able to find were discourses where you mentioned your kata forbidder. Would it be too much asking you to teach me how to do it?
Here's an example: https://www.codewars.com/kata/5ebae674014091001729a9d7 or you can read this thread: https://github.com/codewars/codewars.com/issues/1527
about the module forbidder, I know it's not yet bulletproof (not even sure it's actually possible to make it so... :/ ). I'd need to work on it again (especially with 3.8 in the wild: I believe it won't work for this version). I'll give it a shot.
Houston, we have a problem...
You're using numpy in your test suite. If I use the module forbidder, I forbid the whole module, so can you rewrite all the tests without it?
Oh I thought there would be a way to forbid only a module function. But I've just started rewriting every matrix manipulation functions without using sci/numpy.
@XRFXLP thanks for letting me know, I never thought it would work like that. After I finish rewriting the testcases I will start writing some useful math in the description
ok, poke at me here once you finished to rewrite the tests
Which specific libaries are forbidden? (and you should mention this in description) Because I am not sure whether my solution is allowed.
The idea was to block only
linalg,cholesky
, because the real idea here was to "teach" users how do algorithm works. If there are other libraries that are being blocked, I'm not aware of it (Actually thereload
has a really bad blocking system only because I couldn't THE way to forbid modules)This comment has been hidden.
Oh, I actually didn't know this reload thing was possible. I was trying to find a way to disable some modules and found out that Blind4Basics has some kind of code to do that, but I was unable to find it. I will spend some time now thinking about how to correctly do this module forbidder
About the random tests, it was actually working, the problem you were getting was because of diagonal dominance, so some eigenvalues were getting too close to 0. I already corrected it and now I'm revising it to make sure this doesn't happen anymore.
Ok, it should work now! I had some problems while trying to republish, I hope the changes were actually commited. Could you try again to see if problems persist? I checked the new random tests with
numpy.linalg.cholesky
and after a lot of tries, I got no error.I was unable to find a better way to block this bypass, so I will leave it like this for now and start solving some katas that Blind4Basics contributed to so I can learn how to properly solve this issue
@BabiRuiva The permission error logs are wrong, even when I try to import
scipy.linalg.cholesky
or justnumpy.linalg
logs shows that I am importingnumpy.linalg.cholesky
.Is it still doing that? I tried to reproduce this right now, but got the right log