import{s as At,n as Lt,o as Pt}from"../chunks/scheduler.65852ee5.js";import{S as Dt,i as Kt,g as M,s as n,r as y,A as Ot,h as i,f as l,c as a,j as Nt,u as p,x as o,k as St,y as te,a as s,v as r,d as U,t as m,w as u}from"../chunks/index.aa74147d.js";import{D as ee,C as z}from"../chunks/DocNotebookDropdown.1a7e6a42.js";import{H as It,E as le}from"../chunks/index.e2566494.js";function se(Ct){let J,A,N,L,b,P,c,D,d,gt='<em>作者：<a href="https://huggingface.co/m-ric" rel="nofollow">Aymeric Roucher</a></em>',K,h,Zt='<p>本教程为高级教程。建议先了解<a href="agents">另一本手册</a>的内容！</p>',O,T,vt="在本 Notebook 中，我们将创建一个<strong>数据分析智能体：一个配备数据分析库的代码智能体，能够加载和转换数据框，从中提取洞察，甚至绘制结果图表！</strong>",tt,w,Wt='假设我想分析 <a href="https://www.kaggle.com/competitions/titanic" rel="nofollow">Kaggle Titanic 挑战</a>的数据，以预测每个乘客的生还情况。但在我深入挖掘之前，我希望一个自动化智能体为我准备分析，提取趋势并绘制一些图形来寻找洞察。',et,j,Rt="让我们开始设置这个系统。",lt,f,$t="运行下面的代码以安装所需的依赖：",st,G,nt,B,Yt='我们首先创建智能体。我们使用了 <code>ReactCodeAgent</code>（请阅读<a href="https://huggingface.co/docs/transformers/en/agents" rel="nofollow">文档</a>了解更多关于智能体类型的信息），因此我们甚至不需要为其提供任何工具：它可以直接运行代码。',at,I,Vt="我们只需要确保它能够使用与数据科学相关的库，方法是将这些库传递给 <code>additional_authorized_imports</code> 参数：<code>[&quot;numpy&quot;, &quot;pandas&quot;, &quot;matplotlib.pyplot&quot;, &quot;seaborn&quot;]</code>。",Mt,C,Ht="一般来说，当在 <code>additional_authorized_imports</code> 中传递库时，确保这些库已在本地环境中安装，因为 Python 解释器只能使用已安装的库。",it,g,Xt='⚙ 我们的智能体将由 <a href="https://huggingface.co/meta-llama/Meta-Llama-3.1-70B-Instruct" rel="nofollow">meta-llama/Meta-Llama-3.1-70B-Instruct</a> 提供支持，使用 <code>HfEngine</code> 类，这个类通过 HF 的推理 API 实现：推理 API 使得运行任何操作系统模型变得快速而简单。',ot,Z,yt,v,pt,W,kt="在运行智能体时，我们提供了来自竞赛的额外说明，并将其作为关键字参数（kwarg）传递给 <code>run</code> 方法：",rt,R,Ut,$,mt,Y,ut,V,Et=`Here are the correlations and trends found in the data:

1. **Correlation between age and survival rate**: The correlation is -0.0772, which suggests that as age increases, the survival rate decreases. This implies that older passengers were less likely to survive the Titanic disaster.

2. **Relationship between Pclass and survival rate**: The survival rates for each Pclass are:
   - Pclass 1: 62.96%
   - Pclass 2: 47.28%
   - Pclass 3: 24.24%
   This shows that passengers in higher socio-economic classes (Pclass 1 and 2) had a significantly higher survival rate compared to those in the lower class (Pclass 3).

3. **Relationship between fare and survival rate**: The correlation is 0.2573, which suggests a moderate positive relationship between fare and survival rate. This implies that passengers who paid higher fares were more likely to survive the disaster.
`,Jt,H,Qt="令人印象深刻，不是吗？你还可以为你的智能体提供一个可视化工具，让它能够反思自己绘制的图表！",bt,X,ct,k,xt="👉 现在让我们深入一步：<strong>我们将让我们的模型在数据上执行预测。</strong>",dt,E,qt="为此，我们还需要让它使用 <code>sklearn</code>，并将其添加到 <code>additional_authorized_imports</code> 中。",ht,Q,Tt,x,Ft="智能体输出的测试预测，一旦提交到 Kaggle，得分为 <strong>0.78229</strong>，在 17,360 名参赛者中排名 <strong>#2824</strong>，而且比我几年前第一次尝试这个挑战时艰难取得的成绩还要好。",wt,q,_t="你的结果可能会有所不同，但无论如何，我认为能够在几秒钟内通过智能体实现这一点，实在是非常令人印象深刻。",jt,F,zt="🚀 以上只是一个数据分析智能体的简单尝试：它肯定可以在很多方面进行改进，以更好地适应你的具体使用场景！",ft,_,Gt,S,Bt;return b=new ee({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/cookbook/blob/main/notebooks/zh-CN/agent_data_analyst.ipynb"}]}}),c=new It({props:{title:"数据分析智能体：瞬间获取数据洞察 ✨",local:"数据分析智能体瞬间获取数据洞察-",headingTag:"h1"}}),G=new z({props:{code:"IXBpcCUyMGluc3RhbGwlMjBzZWFib3JuJTIwJTIydHJhbnNmb3JtZXJzJTVCYWdlbnRzJTVEJTIy",highlighted:'!pip install seaborn <span class="hljs-string">&quot;transformers[agents]&quot;</span>',wrap:!1}}),Z=new z({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5hZ2VudHMlMjBpbXBvcnQlMjBIZkVuZ2luZSUyQyUyMFJlYWN0Q29kZUFnZW50JTBBZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxvZ2luJTBBaW1wb3J0JTIwb3MlMEElMEFsb2dpbihvcy5nZXRlbnYoJTIySFVHR0lOR0ZBQ0VIVUJfQVBJX1RPS0VOJTIyKSklMEElMEFsbG1fZW5naW5lJTIwJTNEJTIwSGZFbmdpbmUoJTIybWV0YS1sbGFtYSUyRk1ldGEtTGxhbWEtMy4xLTcwQi1JbnN0cnVjdCUyMiklMEElMEFhZ2VudCUyMCUzRCUyMFJlYWN0Q29kZUFnZW50KCUwQSUyMCUyMCUyMCUyMHRvb2xzJTNEJTVCJTVEJTJDJTBBJTIwJTIwJTIwJTIwbGxtX2VuZ2luZSUzRGxsbV9lbmdpbmUlMkMlMEElMjAlMjAlMjAlMjBhZGRpdGlvbmFsX2F1dGhvcml6ZWRfaW1wb3J0cyUzRCU1QiUyMm51bXB5JTIyJTJDJTIwJTIycGFuZGFzJTIyJTJDJTIwJTIybWF0cGxvdGxpYi5weXBsb3QlMjIlMkMlMjAlMjJzZWFib3JuJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwbWF4X2l0ZXJhdGlvbnMlM0QxMCUyQyUwQSk=",highlighted:`<span class="hljs-keyword">from</span> transformers.agents <span class="hljs-keyword">import</span> HfEngine, ReactCodeAgent
<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> login
<span class="hljs-keyword">import</span> os

login(os.getenv(<span class="hljs-string">&quot;HUGGINGFACEHUB_API_TOKEN&quot;</span>))

llm_engine = HfEngine(<span class="hljs-string">&quot;meta-llama/Meta-Llama-3.1-70B-Instruct&quot;</span>)

agent = ReactCodeAgent(
    tools=[],
    llm_engine=llm_engine,
    additional_authorized_imports=[<span class="hljs-string">&quot;numpy&quot;</span>, <span class="hljs-string">&quot;pandas&quot;</span>, <span class="hljs-string">&quot;matplotlib.pyplot&quot;</span>, <span class="hljs-string">&quot;seaborn&quot;</span>],
    max_iterations=<span class="hljs-number">10</span>,
)`,wrap:!1}}),v=new It({props:{title:"数据分析 📊🤔",local:"数据分析-",headingTag:"h2"}}),R=new z({props:{code:"aW1wb3J0JTIwb3MlMEElMEFvcy5ta2RpciglMjIuJTJGZmlndXJlcyUyMik=",highlighted:`<span class="hljs-keyword">import</span> os

os.mkdir(<span class="hljs-string">&quot;./figures&quot;</span>)`,wrap:!1}}),$=new z({props:{code:"YWRkaXRpb25hbF9ub3RlcyUyMCUzRCUyMCUyMiUyMiUyMiUwQSUyMyUyMyUyMyUyMFZhcmlhYmxlJTIwTm90ZXMlMEFwY2xhc3MlM0ElMjBBJTIwcHJveHklMjBmb3IlMjBzb2Npby1lY29ub21pYyUyMHN0YXR1cyUyMChTRVMpJTBBMXN0JTIwJTNEJTIwVXBwZXIlMEEybmQlMjAlM0QlMjBNaWRkbGUlMEEzcmQlMjAlM0QlMjBMb3dlciUwQWFnZSUzQSUyMEFnZSUyMGlzJTIwZnJhY3Rpb25hbCUyMGlmJTIwbGVzcyUyMHRoYW4lMjAxLiUyMElmJTIwdGhlJTIwYWdlJTIwaXMlMjBlc3RpbWF0ZWQlMkMlMjBpcyUyMGl0JTIwaW4lMjB0aGUlMjBmb3JtJTIwb2YlMjB4eC41JTBBc2lic3AlM0ElMjBUaGUlMjBkYXRhc2V0JTIwZGVmaW5lcyUyMGZhbWlseSUyMHJlbGF0aW9ucyUyMGluJTIwdGhpcyUyMHdheS4uLiUwQVNp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IwZGV0YWlsZWQlMjBwYXJ0cy4lMEElMjIlMjIlMjIlMkMlMEElMjAlMjAlMjAlMjBhZGRpdGlvbmFsX25vdGVzJTNEYWRkaXRpb25hbF9ub3RlcyUyQyUwQSUyMCUyMCUyMCUyMHNvdXJjZV9maWxlJTNEJTIydGl0YW5pYyUyRnRyYWluLmNzdiUyMiUyQyUwQSk=",highlighted:`additional_notes = <span class="hljs-string">&quot;&quot;&quot;
### Variable Notes
pclass: A proxy for socio-economic status (SES)
1st = Upper
2nd = Middle
3rd = Lower
age: Age is fractional if less than 1. If the age is estimated, is it in the form of xx.5
sibsp: The dataset defines family relations in this way...
Sibling = brother, sister, stepbrother, stepsister
Spouse = husband, wife (mistresses and fiancés were ignored)
parch: The dataset defines family relations in this way...
Parent = mother, father
Child = daughter, son, stepdaughter, stepson
Some children travelled only with a nanny, therefore parch=0 for them.
&quot;&quot;&quot;</span>

analysis = agent.run(
    <span class="hljs-string">&quot;&quot;&quot;You are an expert data analyst.
Please load the source file and analyze its content.
According to the variables you have, begin by listing 3 interesting questions that could be asked on this data, for instance about specific correlations with survival rate.
Then answer these questions one by one, by finding the relevant numbers.
Meanwhile, plot some figures using matplotlib/seaborn and save them to the (already existing) folder &#x27;./figures/&#x27;: take care to clear each figure with plt.clf() before doing another plot.

In your final answer: summarize these correlations and trends
After each number derive real worlds insights, for instance: &quot;Correlation between is_december and boredness is 1.3453, which suggest people are more bored in winter&quot;.
Your final answer should have at least 3 numbered and detailed parts.
&quot;&quot;&quot;</span>,
    additional_notes=additional_notes,
    source_file=<span class="hljs-string">&quot;titanic/train.csv&quot;</span>,
)`,wrap:!1}}),Y=new z({props:{code:"cHJpbnQoYW5hbHlzaXMp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(analysis)',wrap:!1}}),X=new It({props:{title:"数据科学智能体：进行预测 🛠️",local:"数据科学智能体进行预测-",headingTag:"h2"}}),Q=new z({props:{code:"YWdlbnQlMjAlM0QlMj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TIwYmVmb3JlJTIwdXNpbmclMjB0aGVtISUwQSUyMiUyMiUyMiUyQyUwQSUyMCUyMCUyMCUyMGFkZGl0aW9uYWxfbm90ZXMlM0RhZGRpdGlvbmFsX25vdGVzJTIwJTJCJTIwJTIyJTVDbiUyMiUyMCUyQiUyMGFuYWx5c2lzJTJDJTBBKQ==",highlighted:`agent = ReactCodeAgent(
    tools=[],
    llm_engine=llm_engine,
    additional_authorized_imports=[
        <span class="hljs-string">&quot;numpy&quot;</span>,
        <span class="hljs-string">&quot;pandas&quot;</span>,
        <span class="hljs-string">&quot;matplotlib.pyplot&quot;</span>,
        <span class="hljs-string">&quot;seaborn&quot;</span>,
        <span class="hljs-string">&quot;sklearn&quot;</span>,
    ],
    max_iterations=<span class="hljs-number">12</span>,
)

output = agent.run(
    <span class="hljs-string">&quot;&quot;&quot;You are an expert machine learning engineer.
Please train a ML model on &quot;titanic/train.csv&quot; to predict the survival for rows of &quot;titanic/test.csv&quot;.
Output the results under &#x27;./output.csv&#x27;.
Take care to import functions and modules before using them!
&quot;&quot;&quot;</span>,
    additional_notes=additional_notes + <span class="hljs-string">&quot;\\n&quot;</span> + analysis,
)`,wrap:!1}}),_=new le({props:{source:"https://github.com/huggingface/cookbook/blob/main/notebooks/zh-CN/agent_data_analyst.md"}}),{c(){J=M("meta"),A=n(),N=M("p"),L=n(),y(b.$$.fragment),P=n(),y(c.$$.fragment),D=n(),d=M("p"),d.innerHTML=gt,K=n(),h=M("blockquote"),h.innerHTML=Zt,O=n(),T=M("p"),T.innerHTML=vt,tt=n(),w=M("p"),w.innerHTML=Wt,et=n(),j=M("p"),j.textContent=Rt,lt=n(),f=M("p"),f.textContent=$t,st=n(),y(G.$$.fragment),nt=n(),B=M("p"),B.innerHTML=Yt,at=n(),I=M("p"),I.innerHTML=Vt,Mt=n(),C=M("p"),C.innerHTML=Ht,it=n(),g=M("p"),g.innerHTML=Xt,ot=n(),y(Z.$$.fragment),yt=n(),y(v.$$.fragment),pt=n(),W=M("p"),W.innerHTML=kt,rt=n(),y(R.$$.fragment),Ut=n(),y($.$$.fragment),mt=n(),y(Y.$$.fragment),ut=n(),V=M("pre"),V.textContent=Et,Jt=n(),H=M("p"),H.textContent=Qt,bt=n(),y(X.$$.fragment),ct=n(),k=M("p"),k.innerHTML=xt,dt=n(),E=M("p"),E.innerHTML=qt,ht=n(),y(Q.$$.fragment),Tt=n(),x=M("p"),x.innerHTML=Ft,wt=n(),q=M("p"),q.textContent=_t,jt=n(),F=M("p"),F.textContent=zt,ft=n(),y(_.$$.fragment),Gt=n(),S=M("p"),this.h()},l(t){const e=Ot("svelte-u9bgzb",document.head);J=i(e,"META",{name:!0,content:!0}),e.forEach(l),A=a(t),N=i(t,"P",{}),Nt(N).forEach(l),L=a(t),p(b.$$.fragment,t),P=a(t),p(c.$$.fragment,t),D=a(t),d=i(t,"P",{"data-svelte-h":!0}),o(d)!=="svelte-162vedp"&&(d.innerHTML=gt),K=a(t),h=i(t,"BLOCKQUOTE",{"data-svelte-h":!0}),o(h)!=="svelte-15o9ix0"&&(h.innerHTML=Zt),O=a(t),T=i(t,"P",{"data-svelte-h":!0}),o(T)!=="svelte-p9m0bc"&&(T.innerHTML=vt),tt=a(t),w=i(t,"P",{"data-svelte-h":!0}),o(w)!=="svelte-17uibhp"&&(w.innerHTML=Wt),et=a(t),j=i(t,"P",{"data-svelte-h":!0}),o(j)!=="svelte-bnqqw8"&&(j.textContent=Rt),lt=a(t),f=i(t,"P",{"data-svelte-h":!0}),o(f)!=="svelte-1w43ne9"&&(f.textContent=$t),st=a(t),p(G.$$.fragment,t),nt=a(t),B=i(t,"P",{"data-svelte-h":!0}),o(B)!=="svelte-19dkbw3"&&(B.innerHTML=Yt),at=a(t),I=i(t,"P",{"data-svelte-h":!0}),o(I)!=="svelte-110k1or"&&(I.innerHTML=Vt),Mt=a(t),C=i(t,"P",{"data-svelte-h":!0}),o(C)!=="svelte-grd1eg"&&(C.innerHTML=Ht),it=a(t),g=i(t,"P",{"data-svelte-h":!0}),o(g)!=="svelte-1x8quzi"&&(g.innerHTML=Xt),ot=a(t),p(Z.$$.fragment,t),yt=a(t),p(v.$$.fragment,t),pt=a(t),W=i(t,"P",{"data-svelte-h":!0}),o(W)!=="svelte-7h8uhj"&&(W.innerHTML=kt),rt=a(t),p(R.$$.fragment,t),Ut=a(t),p($.$$.fragment,t),mt=a(t),p(Y.$$.fragment,t),ut=a(t),V=i(t,"PRE",{"data-svelte-h":!0}),o(V)!=="svelte-i4e8sv"&&(V.textContent=Et),Jt=a(t),H=i(t,"P",{"data-svelte-h":!0}),o(H)!=="svelte-1vlc15d"&&(H.textContent=Qt),bt=a(t),p(X.$$.fragment,t),ct=a(t),k=i(t,"P",{"data-svelte-h":!0}),o(k)!=="svelte-1fwn593"&&(k.innerHTML=xt),dt=a(t),E=i(t,"P",{"data-svelte-h":!0}),o(E)!=="svelte-coz7bh"&&(E.innerHTML=qt),ht=a(t),p(Q.$$.fragment,t),Tt=a(t),x=i(t,"P",{"data-svelte-h":!0}),o(x)!=="svelte-1cw7kqc"&&(x.innerHTML=Ft),wt=a(t),q=i(t,"P",{"data-svelte-h":!0}),o(q)!=="svelte-f0ubie"&&(q.textContent=_t),jt=a(t),F=i(t,"P",{"data-svelte-h":!0}),o(F)!=="svelte-b62qr"&&(F.textContent=zt),ft=a(t),p(_.$$.fragment,t),Gt=a(t),S=i(t,"P",{}),Nt(S).forEach(l),this.h()},h(){St(J,"name","hf:doc:metadata"),St(J,"content",ne)},m(t,e){te(document.head,J),s(t,A,e),s(t,N,e),s(t,L,e),r(b,t,e),s(t,P,e),r(c,t,e),s(t,D,e),s(t,d,e),s(t,K,e),s(t,h,e),s(t,O,e),s(t,T,e),s(t,tt,e),s(t,w,e),s(t,et,e),s(t,j,e),s(t,lt,e),s(t,f,e),s(t,st,e),r(G,t,e),s(t,nt,e),s(t,B,e),s(t,at,e),s(t,I,e),s(t,Mt,e),s(t,C,e),s(t,it,e),s(t,g,e),s(t,ot,e),r(Z,t,e),s(t,yt,e),r(v,t,e),s(t,pt,e),s(t,W,e),s(t,rt,e),r(R,t,e),s(t,Ut,e),r($,t,e),s(t,mt,e),r(Y,t,e),s(t,ut,e),s(t,V,e),s(t,Jt,e),s(t,H,e),s(t,bt,e),r(X,t,e),s(t,ct,e),s(t,k,e),s(t,dt,e),s(t,E,e),s(t,ht,e),r(Q,t,e),s(t,Tt,e),s(t,x,e),s(t,wt,e),s(t,q,e),s(t,jt,e),s(t,F,e),s(t,ft,e),r(_,t,e),s(t,Gt,e),s(t,S,e),Bt=!0},p:Lt,i(t){Bt||(U(b.$$.fragment,t),U(c.$$.fragment,t),U(G.$$.fragment,t),U(Z.$$.fragment,t),U(v.$$.fragment,t),U(R.$$.fragment,t),U($.$$.fragment,t),U(Y.$$.fragment,t),U(X.$$.fragment,t),U(Q.$$.fragment,t),U(_.$$.fragment,t),Bt=!0)},o(t){m(b.$$.fragment,t),m(c.$$.fragment,t),m(G.$$.fragment,t),m(Z.$$.fragment,t),m(v.$$.fragment,t),m(R.$$.fragment,t),m($.$$.fragment,t),m(Y.$$.fragment,t),m(X.$$.fragment,t),m(Q.$$.fragment,t),m(_.$$.fragment,t),Bt=!1},d(t){t&&(l(A),l(N),l(L),l(P),l(D),l(d),l(K),l(h),l(O),l(T),l(tt),l(w),l(et),l(j),l(lt),l(f),l(st),l(nt),l(B),l(at),l(I),l(Mt),l(C),l(it),l(g),l(ot),l(yt),l(pt),l(W),l(rt),l(Ut),l(mt),l(ut),l(V),l(Jt),l(H),l(bt),l(ct),l(k),l(dt),l(E),l(ht),l(Tt),l(x),l(wt),l(q),l(jt),l(F),l(ft),l(Gt),l(S)),l(J),u(b,t),u(c,t),u(G,t),u(Z,t),u(v,t),u(R,t),u($,t),u(Y,t),u(X,t),u(Q,t),u(_,t)}}}const ne='{"title":"数据分析智能体：瞬间获取数据洞察 ✨","local":"数据分析智能体瞬间获取数据洞察-","sections":[{"title":"数据分析 📊🤔","local":"数据分析-","sections":[],"depth":2},{"title":"数据科学智能体：进行预测 🛠️","local":"数据科学智能体进行预测-","sections":[],"depth":2}],"depth":1}';function ae(Ct){return Pt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pe extends Dt{constructor(J){super(),Kt(this,J,ae,se,At,{})}}export{pe as component};
