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

  • Machine Learning With Go
  • Daniel Whitenack
  • 138字
  • 2021-07-08 10:37:28

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.

主站蜘蛛池模板: 怀柔区| 德格县| 宝丰县| 长乐市| 宁强县| 集贤县| 高安市| 安仁县| 贡山| 克东县| 江永县| 高州市| 玉林市| 偏关县| 四子王旗| 津市市| 花莲县| 古浪县| 雅安市| 蛟河市| 乌拉特后旗| 嘉义市| 方山县| 两当县| 奉节县| 彭泽县| 天气| 凤凰县| 三亚市| 五河县| 江华| 潜山县| 巨野县| 苗栗县| 郓城县| 庆城县| 黎城县| 丹寨县| 浑源县| 分宜县| 金阳县|