SCCapstone / blackandback

http://blackandback.ml
2 stars 0 forks source link

Provide proper attribution #50

Closed josemvidal closed 5 years ago

josemvidal commented 5 years ago

I note that your code is identical to this code.

Please note that our Academic Integrity statement is clear in that copying code from someone else and committing it under your name will result in a formal report to the Office of Academic Integrity, which might lead to expulsion from USC.

I understand that DNN code is all pretty much the same. People just cut-n-paste old nets and change a couple of numbers. However, if you did not write the code, you must mention it in the file something like:

// This code originally written by Alice P Hacker <alice@lisp.com> and found at
// http://aliceblog.com/coolprogram
ryandavis709 commented 5 years ago

Dr Vidal, When I originally wrote this code I mainly sourced an academic paper I found on freecodecamp.com. Then i updated it into a library and changed it to work more quickly as well as for use in a website. It would appear that the code you listed has done something very similar. I will add the link to the academic paper to the top of this code but frankly, this is the first time I have ever seen the repository you have linked. I would guess that the person who wrote the repository you linked did something similar. Would you like me to add a link to that repository as well? https://medium.freecodecamp.org/colorize-b-w-photos-with-a-100-line-neural-network-53d9b4449f8d

josemvidal commented 5 years ago

Yes. It does not matter whether the original source is a paper or a webpage, neither of them is you.

You did not write the original code, thus you have to give credit to the original author, as best as you can determine who that was.

If you give credit it is a citation, if you do not it is plagiarism.

ryandavis709 commented 5 years ago

Understood, I went ahead and cited the paper for the general form for the weights of the neural network since I thought it was more appropriate. Thanks for catching this!