基于机器学习算法的配方标签分类

2024-09-30 00:40:46 发布

您现在位置:Python中文网/ 问答频道 /正文

我在做一个项目,在那里我有大约15000个样本食谱,标题是Ingr(edients),摘要,准备,和JSON文件中的标签。你知道吗

示例配方如下所示:

{

"title": "Turtle Cheesecake",
"summary": "Cheesecake is a staple at the Market, but it’s different nearly every day because we vary the toppings, crusts, and flavorings. Cookie crusts are particularly good with cheesecakes. If you prefer your cheesecake plain, just serve it without the topping",
"ingr": [
  "1½ cups graham cracker crumbs",
  "½ cup finely chopped pecans (pulse in a food processor several times)",
  "6 tablespoons ( ¾ stick) unsalted butter, melted",
  "1½ pounds cream cheese, softened",
  "¾ cup sugar",
  "2 tablespoons all purpose flour",
  "3 large eggs",
  "1large egg yolk",
  "½ cup heavy cream",
  "2 teaspoons pure vanilla extract",
  "1 cup sugar",
  "1 cup heavy cream",
  "½ teaspoon pure vanilla extract",
  "½ cup coarsely chopped pecans, toasted",
  "2 ounces semisweet chocolate, melted"
],
"prep": "To Make the Crust:\n\n\n\n Grease a 9-inch springform pan. Wrap the outside of the pan, including the bottom, with a large square of aluminum foil. Set aside.\n\n\n\..."
"tag": [
  "Moderate",
  "Casual Dinner Party",
  "Family Get-together",
  "Formal Dinner Party",
  "dessert",
  "dinner",
  "cake",
  "cheesecake",
  "dessert"
]

}

我想知道任何算法或方法来分类这些数据,最终目标是能够预测基于其他四个类的标签。我是机器学习新手,没有真正使用过JSON文件,也没有太多的Python实践。你知道吗


Tags: 文件thejsonwithit标签cupcream

热门问题