554 views
2 2 votes
In any coding assignment or task at a higher educational level (University/College), would it be acceptable to use less coding and list modules or libraries that may not be provided?

For example, a class assignment was posted on a Learning Management System: Quercus did not have a rubric or any kind of criteria listed.

Would less coding, and more usage of functions built-in be suitable? Sci-kit learn instead of generating several lines of algorithms when the library has a very useable version in less than three lines?

There are several ways to end with the same answer.
25% Accept Rate Accepted 1 answers out of 4 questions

1 Answer

1 1 vote
It depends on the assignment. If it says do not use the libraries there is a learning outcome for it. For example, by not using kNN algorithm implemented in scikit-learn and implementing it, you will understand how the algorithm works and you think about mechanics behind the scene.

But generally, you are allowed to use any library that makes your job easier to solve the problem. However it is true for the assignments or prototypes, in the production environment efficiency of code also matters. So, the minimum complexity, a clean code, and minimum number of libraries are desired to reduce the overhead and save the memory and space, and in addition make our project maintainable.

Related questions

2 2 votes
1 1 answer
3.5k
3.5k views
KenTheStatsMan asked Oct 8, 2018
3,510 views
This question is from the third Combination example from lecture notes 3A. Researching this question I found this answerhttps://www.quora.com/In-how-many-ways-can-52-card...
1 1 vote
1 1 answer
1.3k
1.3k views
mcneils asked Mar 18, 2019
1,275 views
How do you determine the weight values that connect to the other data points when solving for our output in neural networks?
0 0 votes
0 0 answers
1.5k
1.5k views
Frenzy asked Apr 27, 2022
1,522 views
I have a dataset with 7 labels in the target variable.X = data.drop('target', axis=1) Y = data['target'] Y.unique()array(['Normal_Weight', 'Overweight_Level_I', 'Overweig...
2 2 votes
1 1 answer
891
891 views
1 1 vote
3 3 answers
3.7k
3.7k views
kalyanak.p asked Oct 1, 2018
3,715 views
The KNN function in the sklearn library (when coded properly), outputs the points closest to p based on the value of k, and others.The point(s) would include itself when ...