Skip to content

Commit 7a0766e

Browse files
committed
Update intro_to_chains.ipynb
1 parent 53206b4 commit 7a0766e

File tree

1 file changed

+8
-8
lines changed
  • Module 9 - GenAI (LLMs and Prompt Engineering)/6. Building Apps Powered by GenAI using LangChain/1. Introduction to LangChain/5. Chains

1 file changed

+8
-8
lines changed

Module 9 - GenAI (LLMs and Prompt Engineering)/6. Building Apps Powered by GenAI using LangChain/1. Introduction to LangChain/5. Chains/intro_to_chains.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"id": "6184a554-1851-4a31-abf1-87c2561f29be",
66
"metadata": {},
77
"source": [
8-
"## **Chains**\n",
8+
"# **Chains**\n",
99
"\n",
1010
"Chains allows us to link the output of one LLM call as the input of another call.\n",
1111
"\n",
@@ -14,7 +14,7 @@
1414
},
1515
{
1616
"cell_type": "code",
17-
"execution_count": 19,
17+
"execution_count": 1,
1818
"id": "aa15d575-4524-41b8-a4a1-f3da57950631",
1919
"metadata": {},
2020
"outputs": [],
@@ -28,7 +28,7 @@
2828
},
2929
{
3030
"cell_type": "code",
31-
"execution_count": 20,
31+
"execution_count": 2,
3232
"id": "3c3e157e-dd82-4541-925e-70a640a3723c",
3333
"metadata": {},
3434
"outputs": [],
@@ -41,7 +41,7 @@
4141
},
4242
{
4343
"cell_type": "code",
44-
"execution_count": 21,
44+
"execution_count": 3,
4545
"id": "069c2668-961a-43ba-a5ee-ff85b0297cae",
4646
"metadata": {},
4747
"outputs": [],
@@ -58,7 +58,7 @@
5858
},
5959
{
6060
"cell_type": "code",
61-
"execution_count": 22,
61+
"execution_count": 4,
6262
"id": "afb84660-ae5b-485c-b2f7-b6dbd9788b9e",
6363
"metadata": {},
6464
"outputs": [],
@@ -70,17 +70,17 @@
7070
},
7171
{
7272
"cell_type": "code",
73-
"execution_count": 23,
73+
"execution_count": 5,
7474
"id": "af9b77b3-15b6-4969-81db-ca93e76d7476",
7575
"metadata": {},
7676
"outputs": [
7777
{
7878
"data": {
7979
"text/plain": [
80-
"'Feature selection is the process of selecting a subset of relevant features or variables from a larger set of features in a dataset. The goal of feature selection is to improve the performance of a machine learning model by reducing overfitting, increasing model interpretability, and reducing computational cost.\\n\\nThere are several methods for feature selection, including filter methods, wrapper methods, and embedded methods. Filter methods use statistical tests to rank features based on their correlation with the target variable. Wrapper methods evaluate different subsets of features by training and testing the model on each subset. Embedded methods incorporate feature selection as part of the model training process, such as with regularization techniques like Lasso or Ridge regression.\\n\\nOverall, feature selection is an important step in the machine learning pipeline to improve model performance and interpretability.'"
80+
"'Feature selection is the process of selecting a subset of relevant features or variables from a larger set of features in a dataset that are most important for predicting the target variable. The goal of feature selection is to improve the performance of the machine learning model by reducing overfitting, increasing computational efficiency, and enhancing interpretability.\\n\\nThere are several techniques for feature selection, including filter methods, wrapper methods, and embedded methods. Filter methods rank features based on statistical measures like correlation or mutual information with the target variable. Wrapper methods use a specific machine learning algorithm to evaluate different subsets of features. Embedded methods select features as part of the model building process, such as regularization techniques like Lasso or Ridge regression.\\n\\nOverall, feature selection plays a crucial role in building accurate and efficient machine learning models by focusing on the most relevant features while ignoring irrelevant or redundant ones.'"
8181
]
8282
},
83-
"execution_count": 23,
83+
"execution_count": 5,
8484
"metadata": {},
8585
"output_type": "execute_result"
8686
}

0 commit comments

Comments
 (0)