未加星标

How to make wise choices in selecting libraries

字体大小 | |
[开发(python) 所属分类 开发(python) | 发布者 店小二04 | 时间 2018 | 作者 红领巾 ] 0人收藏点击收藏
How to make wise choices in selecting libraries

Choosing a library is like choosing a wife, you have to stick with it and often changing one involves complicated process that is very expensive. So the best way to do this by analysis.

Now a days most analysis of libraries involve the features of the library. So we won’t get into that. We will go through this problem by example choosing a model server library for machine learning. A model server library allows you to easily make a server for your machine learning model.

Select the library which gives you the mostfeatures

This is a fairly obvious choice picking the one that gives you the most features. You look at your requirements and you see the library which gives you the minimal features you need.

So i have shortlisted 4 libraries:

Tensorflow serving Clipper.ai Model Aerver for Apache MXNet DeepDetect

We can look at the release date, stars on GitHub.


How to make wise choices in selecting libraries

Now you compare features and select the best. But this is where is used to get stuck. I used to find 3 very good libraries and i can’t figure out why one is better than the other. One may have more stars since it’s older. Doesn’t mean much. Does it.

See downloads of eachlibrary

Data-driven Downloads can be taken into account by using Google’s Big Query Cloud platform the analyze the python package of all the API’s to make an informed decision about which platform to use.

See how many people downloaded thispackage.


How to make wise choices in selecting libraries
Example of how to see total downloads of tensorflow=-serving-api library using GoogleBigQuery

You can also set downloads for a shorter period, lets say last one month or so.

See how many open source projects are usingthem

This one is pretty simple and obvious, but most people don’t do it. See how many people are using this package on GitHub.

Projects using the libraries can be searched on GitHub using the search term “filename:requirements.txt library-name” This will search in “requirements.txt”, a file included in all standard python projects which are in GitHub to check for the library.

This can be used to measure how many people use this library. It was not available for Deep Detect as it was not a Python Package. So sad :cry:


How to make wise choices in selecting libraries
Search in GitHub to see how many people are using these libraries. SEO helps

If a page has a higher SEO ranking that means that library is more used a visited by more people. That can help you make rational decisions as well.

Page Authority using MOZ.com based on backlinks and link metrics can also used to see which of these libraries are more popular. This takes into account how many sites link these libraries.


How to make wise choices in selecting libraries
Conclusion

One can check if a library is being used by a large amount of people to make rational choices in the library you use. Since selecting one requires more than just looking up blog posts and GitHub stars. But also on how big the eco system is.

Other things i can suggest is see how active the community is in the library, if its dead probably don’t use it. As when you get stuck in a bug you will be stuck for a very long time. You can do this by seeing how many tags are of the library in stackoverflow.

Thank you for reading :sweat_smile:. If you like the Article give it a clap :clap:.

Do consider Buying me a Coffee https://www.buymeacoffee.com/gautham , If you loved the article.

If you wish to have a chat, DM me at https://twitter.com/gauthamzzz .

I am a Masters student at the Indian Institute of Information Technology, Allahabad. My Website http://gauthamzz.com .

本文开发(python)相关术语:python基础教程 python多线程 web开发工程师 软件开发工程师 软件开发流程

分页:12
转载请注明
本文标题:How to make wise choices in selecting libraries
本站链接:https://www.codesec.net/view/611837.html


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 开发(python) | 评论(0) | 阅读(15)