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

  • 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.

主站蜘蛛池模板: 太仆寺旗| 香港| 南宫市| 齐齐哈尔市| 陕西省| 松江区| 明星| 玛纳斯县| 三穗县| 武平县| 承德市| 思南县| 兴化市| 东城区| 临高县| 古丈县| 扎赉特旗| 台北市| 罗江县| 沧源| 沙坪坝区| 团风县| 那曲县| 磴口县| 洛阳市| 天柱县| 图木舒克市| 青岛市| 双桥区| 岑溪市| 天峻县| 柳河县| 泌阳县| 防城港市| 昌吉市| 科技| 罗定市| 吴川市| 古蔺县| 临泉县| 高平市|