酷博平台

          <dd id="wmffv"><u id="wmffv"></u></dd>

        1. <var id="wmffv"><ol id="wmffv"><big id="wmffv"></big></ol></var>

          <var id="wmffv"></var><code id="wmffv"><ol id="wmffv"></ol></code>
          1. <acronym id="wmffv"></acronym>
                1. home > Research&Insights > Understanding a Machine Learning workflow through food

                  Understanding a Machine Learning workflow through food

                  Through food?! Yes, you got that right, through food! :-)


                  Imagine yourself ordering a pizza and, after a short while, getting that nice, warm and delicious pizza delivered to your home.

                  Have you ever wondered the workflow behind getting such a pizza delivered to your home? I mean, the full workflow, from the sowing of tomato seeds to the bike rider buzzing at your door! It turns out, it is not so different from a Machine Learning workflow.

                  Really! Let’s check it out!

                  This post draws inspiration from a talk given by Cassie Kozyrkov, Chief Decision Scientist at Google, at the Data Natives Conference in Berlin.

                  1. Sowing


                  The farmer sows the seeds that will grow to become some of the ingredients to our pizza, like the tomatoes.

                  This is equivalent to the data generating process, be it a user action, be it movement, heat or noise triggering a sensor, for instance.


                  2. Harvesting


                  Then it comes the time for the harvest, that is, when the vegetables or fruits are ripe.

                  This is equivalent to the data collection, meaning the browser or sensor will translate the user action or the event that triggered the sensor into actual data.


                  3. Transporting


                  After the harvest, the products must be transported to their destination to be used as ingredients in our pizza.

                  This is equivalent to ingesting the data into a repository where its going be fetched from later, like a database or data lake.


                  4. Choosing Appliances and Utensils


                  For every ingredient, there is the most appropriate utensil for handling it. If you need to slice, use a knife. If you need to stir, a spoon. The same reasoning is valid for the appliances: if you need to bake, use an oven. If you need to fry, a stove. You can also use a more sophisticated appliance like a microwave, with many, many more available options for setting it up.

                  Sometimes, it is even better to use a simpler appliance?—?have you ever seen a restaurant advertise “microwaved pizzas”?! I haven’t!

                  In Machine Learning, utensils are techniques for preprocessing the data, while the appliances are the algorithms, like a Linear Regression or a Random Forest. You can also use a microwave, I mean, Deep Learning. The different options available are the hyper-parameters. There are only a few in simple appliances, I mean, algorithms. But there are many, many more in a sophisticated one. Besides, there is no guarantee a sophisticated algorithm will deliver a better performance (or do you like microwaved pizzas better?!). So, choose your algorithms wisely.


                  5. Choosing a Recipe


                  It is not enough to have ingredients and appliances. You also need a recipe, which has all the steps you need to follow to prepare your dish.

                  This is your model. And no, your model is not the same as your algorithm. The model includes all pre- and post-processing required by your algorithm. And, talking about pre-processing…


                  6. Preparing the Ingredients


                  I bet you the first instructions in most recipes are like: “slice this”, “peel that” and so on. They don’t tell you to wash the vegetables, because that’s a given?—?no one wants to eat dirty vegetables, right?

                  Well, the same holds true for data. No one wants dirty data. You have to clean it , that is, handling missing values and outliers. And then you have to peel it and slice it, I mean, pre-process it, like encoding categorical variables (male or female, for instance) into numeric ones (0 or 1).

                  No one likes that part. Neither the data scientists nor the cooks (I guess).


                  7. Special Preparations


                  Sometimes you can get creative with your ingredients to achieve either a better taste or a more sophisticated presentation.

                  You can dry-age a steak for a different flavor or carve a carrot to look like a rose and place it on top of your dish :-)

                  This is feature engineering! It is an important step that may substantially improve the performance of your model, if done in a clever way.

                  Pretty much every data scientist enjoys that part. I guess the cooks like it too.


                  8. Cooking


                  The fundamental step?—?without actually cooking, there is no dish. Obviously. You put the prepared ingredients into the appliance, adjust the heat and wait a while before checking it again.

                  This is the training of your model. You feed the data to your algorithm, adjust its hyper-parameters and wait a while before checking it again.


                  9. Tasting


                  Even if you follow a recipe to the letter, you cannot guarantee everything is exactly right. So, how do you know if you got it right? You taste it! If it is not good, you may add more salt to try and fix it. You may also change the temperature. But you keep on cooking!

                  Unfortunately, sometimes your pizza is going to burn, or taste horribly no matter what you do to try to salvage it. You throw it in the garbage, learn from your mistakes and start over.

                  Hopefully, persistence and a bit of luck will produce a delicious pizza :-)

                  Tasting is evaluating. You need to evaluate your model to check if it is doing alright. If not, you may need to add more features. You may also change a hyper-parameter. But you keep on training!

                  Unfortunately, sometimes your model is not going to converge to a solution, or make horrible predictions no matter what you do to try to salvage it. You discard your model, learn from your mistakes and start over.

                  Hopefully, persistence and a bit of luck will result in a high-performing model :-)


                  10. Delivering


                  From the point of the view of the cook, his/her work is done. He/she cooked a delicious pizza. Period.

                  But if the pizza does not get delivered nicely and in time to the customer, the pizzeria is going out of business and the cook is losing his/her job.

                  After the pizza is cooked, it must be promptly packaged to keep it warm and carefully handled to not look all squishy when it reaches the hungry customer. If the bike rider doesn’t reach his/her destination, loses the pizza along the way or shake it beyond recognition, all cooking effort is good for nothing.

                  Delivering is deployment. Not pizzas, but predictions. Predictions, like pizzas, must be packaged, not in boxes, but as data products, so they can be delivered to the eager customers. If the pipeline fails, breaks along the way or modifies the predictions in any way, all model training and evaluation is good for nothing.

                  That’s it! Machine Learning is like cooking food?—?there are several people involved in the process and it takes a lot of effort, but the final result can be delicious!

                  Just a few takeaways:

                  if ingredients are bad, the dish is going to be bad?—?no recipe can fix that and certainly, no appliance, either;
                  if you are a cook, never forget that, without delivering, there is no point in cooking, as no one will ever taste your delicious food;
                  if you are a restaurant owner, don’t try to impose appliances on your cook?—?sometimes microwaves are not the best choice?—?and you’ll get a very unhappy cook if he/she spends all his/her time washing and slicing ingredients…
                  I don’t know about you, but I feel like ordering a pizza now! :-)


                  By Daniel Godoy

                  安阳| 禹州| 盱眙| 馆陶| 安乡| 郴州| 河卡| 清水河| 新余| 天镇| 台山| 久治| 平舆| 江山| 吉安| 东至| 闽侯| 湘潭| 华宁| 道县| 兰溪| 聂拉木| 抚远| 三峡| 邱县| 茫崖| 凤山| 延安| 华容| 新竹市| 陈巴尔虎旗| 融安| 寿阳| 绥芬河| 扎兰屯| 海丰| 魏山| 金沙| 襄阳| 云阳| 上饶| 靖边| 龙泉驿| 应县| 罗甸| 皮口| 辰溪| 公馆| 漳浦| 苍梧| 兴隆| 玉田| 涉县| 晋城| 蛟河| 天河| 婺源| 垦利| 松江| 米泉| 大兴| 永城| 横县| 呼和浩特市郊区| 阿鲁科尔沁旗| 广州| 灯塔| 莫索湾| 西乡| 霍城| 大同| 乌海| 镇远| 灵宝| 托克托| 甘谷| 大连| 嘉兴| 雅布赖| 阿拉山口| 中心站| 灌南| 石城| 珙县| 合川| 万宁| 扎兰屯| 无为| 嵊泗| 沂水| 阳城| 化州| 丽水| 洪洞| 新邵| 武陟| 内江| 府谷| 肥西| 澄海| 广灵| 同心| 昭平| 绥滨| 卓资| 新港| 赤峰| 峨山| 德化| 巢湖| 托里| 望都| 高要| 肥城| 资兴| 东乌珠穆沁旗| 滕州| 平潭海峡大桥| 乌鲁木齐牧试站| 铜锣湾| 崇武| 咸丰| 中甸| 魏山| 都安| 密云上甸子| 盱眙| 滑县| 丹凤| 珠海| 固始| 海拉尔| 丰宁| 东至| 扶绥| 应县| 拉萨| 华安| 南昌| 苍溪| 黄平| 黄梅| 慈溪| 株洲| 利津| 兰西| 宁蒗| 淮阴| 大连| 横峰| 文昌| 阿拉尔| 白银| 昭平| 大城| 固原| 武义| 鄂州| 八宿| 长阳| 察隅| 双辽| 满都拉| 高淳| 临夏| 平南| 曲麻莱| 黄泛区| 灵武| 新界| 错那| 苏尼特右旗| 重庆| 临潼| 桐城| 华宁| 西林| 杨凌| 石嘴山| 鄂伦春旗| 十堰| 山南| 涞源| 普宁| 方正| 万州天城| 五华| 肥城| 红河| 平利| 万安| 巴塘| 兖州| 谷城| 保山| 河南| 即墨| 小渠子| 武清| 贞丰| 乌鞘岭| 奉节| 荔浦| 南岳| 兴平| 会昌| 左云| 济源| 通海| 易县| 玛多| 太康| 新宁| 来宾| 农安| 宜兰| 酉阳| 仁和| 中甸| 大方| 辰溪| 临潼| 自贡| 浠水| 南丹| 张掖| 木兰| 石浦| 会东| 莘县| 西峰| 宁化| 岱山| 芜湖县| 河卡| 新和| 保定| 南郑| 呼兰| 宁都| 成县| 镇安| 天津| 布尔津| 江孜| 临桂| 安新| 丁青| 桃江| 资阳| 大洼| 东乌珠穆沁旗| 龙南| 雷山| 吉安| 姜堰| 监利| 天山大西沟| 永善| 资阳| 高密| 高阳| 铅山| 四子王旗| 布拖| 额尔古纳| 惠阳| 临城| 太湖| 奉新| 农安| 五大连池| 黄陵| 蒙阴| 潮连岛| 东兴| 康山| 江孜| 兰西| 宜宾县| 垫江| 汉川| 宝过图| 隰县| 宁远| 石拐| 郑州农试站| 帕里| 慈利| 永平| 满都拉| 辉县| 秦安| 博乐| 卢龙| 金州| 汉源| 大余| 罗田| 崇礼| 福清| 白水| 梅县| 南和| 柳城| 广灵| 绥宁| 田东| 巴盟农试站| 北安| 克什克腾旗| 吉安| 浦城| 云浮| 五营| 乳源| 浠水| 平陆| 高力板| 河南| 资兴| 昌邑| 合江| 科尔沁右翼中旗| 新和| 剑阁| 伊通| 大武口| 武川| 安康| 温宿| 改则| 小渠子| 云霄| 江宁| 乌鲁木齐| 凤阳| 资溪| 盐池| 石拐| 醴陵| 大宁| 罗城| 内黄| 景谷| 临潼| 晋江| 贵港| 怀安| 温泉| 获嘉| 江都| 新乡| 两当| 固镇| 高邮| 米泉| 宝过图| 伊金霍洛旗| 晋城| 乡城| 武山| 盘山| 九江| 讷河| 昌吉| 金寨| 大兴| 三河| 金乡| 海安| 南京| 枣阳| 蒙城| 周口| 呼图壁| 奇台| 乌拉特中旗| 博乐| 呼伦贝尔| 瓦房店| 修文| 汤阴| 宝山| 长葛| 始兴| 芮城| 周口| 大田| 高州| )| 卓资| 滦平| 柏乡| 野牛沟| 明光| 肃北| 曹妃甸| 绥化| 秭归