ivy icon indicating copy to clipboard operation
ivy copied to clipboard

min #1473

Open AliYagizDizdaroglu opened this issue 3 years ago • 3 comments

reformatted statistics min func and added examples

AliYagizDizdaroglu avatar Jul 14 '22 20:07 AliYagizDizdaroglu

#1473

AliYagizDizdaroglu avatar Jul 14 '22 22:07 AliYagizDizdaroglu

#1473

JAX documentation suggests that it support the out argument, so could you please add that? I also see that you have missing container and array instance methods. Other than that, could you also resolve merge conflicts? I'll have a look again after these changes are made!

Thanks for the review MarShaikh, I have just adjusted my code and committed to fix, after that pushed again.

AliYagizDizdaroglu avatar Jul 20 '22 17:07 AliYagizDizdaroglu

Updates have been made, requesting new review, thanks.

AliYagizDizdaroglu avatar Jul 29 '22 16:07 AliYagizDizdaroglu

Requested changes have been made, new review when possible please.

AliYagizDizdaroglu avatar Aug 02 '22 20:08 AliYagizDizdaroglu

The .idea files re-appeared after I deleted that for some reason. It is strange that you did not see any updates? No worries though, I'm re-pushing.

AliYagizDizdaroglu avatar Aug 08 '22 14:08 AliYagizDizdaroglu

.idea files keep reappearing, I deleted them many times already. Do I need to know something particular?

AliYagizDizdaroglu avatar Aug 16 '22 14:08 AliYagizDizdaroglu

I also fixed merge conflicts yesterday evening, new conflicts appeared? I am kinda confused. Though, will have a look.

AliYagizDizdaroglu avatar Aug 16 '22 15:08 AliYagizDizdaroglu

After some experimentation, it turns out that It breaks if I remove the .idea files for some reason, can we talk on this real time in discord? Other than that, it looks good. No conflicts. Ready to be reviewed!

AliYagizDizdaroglu avatar Aug 18 '22 21:08 AliYagizDizdaroglu

After some experimentation, it turns out that It breaks if I remove the .idea files for some reason, can we talk on this real time in discord? Other than that, it looks good. No conflicts. Ready to be reviewed!

Hi, I'm not sure why it would break. It shouldn't since you are only removing .idea files and only the docstrings of the functions are being changed. Also, once you remove the .idea files it still shows up in the git .diff as removed, you can filter to remove deleted files and it should be good to go.

MarShaikh avatar Aug 19 '22 09:08 MarShaikh

Filtering to remove deleted files did not work out well, still having .idea related conflicts. As of now, my only conflicts are .idea ones. Any other suggestions please?

AliYagizDizdaroglu avatar Aug 20 '22 19:08 AliYagizDizdaroglu

Filtering to remove deleted files did not work out well, still having .idea related conflicts. As of now, my only conflicts are .idea ones. Any other suggestions please?

Easiest way to fix this, I would suggest is just to close this PR, create a new one and only push the changes required. I'm not sure how to fix the .idea conflicts either without changing the branch and pruning your current one.

MarShaikh avatar Aug 23 '22 11:08 MarShaikh

I suppose that the same thing will happen even if I do this stuff again all over from the beginning. So I am planning to solve it here. In regard to that, will do some search, ask in discord, ask friends etc. Therefor please, if you confront something you think would be beneficial, don't hesitate to share with me!

AliYagizDizdaroglu avatar Aug 23 '22 17:08 AliYagizDizdaroglu

In the last commit I replaced my .idea files with the default .idea files. So far so good, no conflicts! Requesting a review please.

AliYagizDizdaroglu avatar Aug 23 '22 20:08 AliYagizDizdaroglu

In the last commit I replaced my .idea files with the default .idea files. So far so good, no conflicts! Requesting a review please.

Sounds good, I'll take a look!

MarShaikh avatar Aug 24 '22 08:08 MarShaikh

Conflicts have been solved until the next change in the code, to say the least. Therfor please, requesting a review before someone changes something!

AliYagizDizdaroglu avatar Sep 06 '22 16:09 AliYagizDizdaroglu

I did not include .idea files, and fixed the conflicts. Requesting a review please.

AliYagizDizdaroglu avatar Sep 18 '22 20:09 AliYagizDizdaroglu

I just realised, the issue connected to this isn't open by you. That's unfortunate. I would recommend you to open a new issue, comment the parent issue name in the issue: "Reformat statistical #812". You should then comment "Closes #issue number" here in the PR. Finally, I would recommend you to pull from upstream as a number of changes has been made since you last opened this PR. You would then notice that the only changes you need to make is for the array instance methods and the container instance methods. Everything else is done. Also, please remove the mxnet folder from your PR as due to a change of policy we aren't supporting MXNet as of now. Finally, of the min function in ivy/functional/ivy/statistical.py was incorrect. Thanks, please update this and request for a review.

image

As shown in the image this issue was opened by me. I'm having a hard time to figure out what you meant.

AliYagizDizdaroglu avatar Sep 22 '22 14:09 AliYagizDizdaroglu

Made the stated changes, requesting a review please.

AliYagizDizdaroglu avatar Sep 22 '22 15:09 AliYagizDizdaroglu

Besides the previous comment, even if I would need to re-open this issue I suppose that I will not be able to do so since someone has already finished it. So what do you propose at this case? image

AliYagizDizdaroglu avatar Sep 22 '22 18:09 AliYagizDizdaroglu

I just realised, the issue connected to this isn't open by you. That's unfortunate. I would recommend you to open a new issue, comment the parent issue name in the issue: "Reformat statistical #812". You should then comment "Closes #issue number" here in the PR. Finally, I would recommend you to pull from upstream as a number of changes has been made since you last opened this PR. You would then notice that the only changes you need to make is for the array instance methods and the container instance methods. Everything else is done. Also, please remove the mxnet folder from your PR as due to a change of policy we aren't supporting MXNet as of now. Finally, of the min function in ivy/functional/ivy/statistical.py was incorrect. Thanks, please update this and request for a review.

image

As shown in the image this issue was opened by me. I'm having a hard time to figure out what you meant.

That's the PR that you have opened, not an issue.

MarShaikh avatar Sep 27 '22 10:09 MarShaikh

Had to use merge_with_upstream in order to counter merge conflicts so that might be why it got mixed. I'm just guessing, since I had it adjusted as stated.

AliYagizDizdaroglu avatar Sep 28 '22 16:09 AliYagizDizdaroglu

There's one final error in the run-docstrings-test relating to the container/statistical.py file remaining. Please have a look! Thanks, and then it should be ready to merge.

As shown in the screenshot there is not any errors in container/statistical.py. Could you please explain it more detailed?

Screenshot_2

AliYagizDizdaroglu avatar Oct 20 '22 18:10 AliYagizDizdaroglu

Can you check the numpy style docstrings error and fix it. Indentation error still exists. Please request for a review after you've resolved these issues!

I managed to fix the indent error but there are 2 more errors that I could not yet figure out. Could you assist me on this please? Here they are:

  1. test-docstrings / run-docstring-tests (pull_request)
  2. test-array-api / run-array-api-tests (tensorflow, linalg) (pull_request)

Other than those, it is ready to be reviewed.

AliYagizDizdaroglu avatar Nov 03 '22 19:11 AliYagizDizdaroglu

LGTM! The other errors aren't caused by your PR. Thanks for the contribution! 🌟

MarShaikh, thank you for your patience and assistance! It has been a solid journey for me, learnt a ton. I hereby would like to thank Ivy Team for this opportunity as well, very much appreciated Ivy people!

AliYagizDizdaroglu avatar Nov 08 '22 19:11 AliYagizDizdaroglu