官术网_书友最值得收藏!

Caching

Sometimes, our machine learning algorithms will be trained by and/or given input for prediction via data from external sources (for example, APIs), that is, data that isn't local to the application running our modeling or analysis. Further, we might have various sets of data that are being accessed frequently, may be accessed again soon, or may need to be made available while the application is running.

In at least some of these cases, it might make sense to cache data in memory or embed the data locally where the application is running. For example, if you are reaching out to a government API (typically having high latency) for census data frequently, you may consider maintaining a local or in-memory cache of the census data being used so that you can avoid constantly reaching out to the API.

主站蜘蛛池模板: 哈尔滨市| 小金县| 中牟县| 威信县| 长丰县| 夏津县| 原平市| 木里| 永定县| 石嘴山市| 应城市| 葫芦岛市| 金昌市| 淮南市| 高要市| 尉氏县| 正宁县| 盱眙县| 鄂州市| 邮箱| 萍乡市| 京山县| 当阳市| 西昌市| 阿合奇县| 梨树县| 大英县| 宣汉县| 永善县| 新龙县| 湖南省| 开远市| 阆中市| 三门峡市| 咸丰县| 平谷区| 壶关县| 两当县| 梁河县| 招远市| 凌海市|