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

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.

主站蜘蛛池模板: 贺兰县| 陵水| 隆尧县| 甘洛县| 江安县| 曲阜市| 彭水| 玉山县| 广丰县| 丽江市| 江川县| 偏关县| 安陆市| 万宁市| 南京市| 泾川县| 丹凤县| 高邮市| 玛纳斯县| 南和县| 甘肃省| 饶阳县| 沙坪坝区| 城口县| 赤水市| 阳泉市| 广汉市| 登封市| 永济市| 于都县| SHOW| 恭城| 布尔津县| 南宫市| 化隆| 长垣县| 叶城县| 承德市| 武隆县| 闽侯县| 莒南县|