Improvements to descriptions and links
This commit is contained in:
@@ -43,6 +43,6 @@ class EnsembleAgent(Agent):
|
||||
'Min': [min(specialist, frontier, random_forest)],
|
||||
'Max': [max(specialist, frontier, random_forest)],
|
||||
})
|
||||
y = self.model.predict(X)[0]
|
||||
y = max(0, self.model.predict(X)[0])
|
||||
self.log(f"Ensemble Agent complete - returning ${y:.2f}")
|
||||
return y
|
||||
@@ -68,9 +68,22 @@
|
||||
"`modal token new` \n",
|
||||
"(Thank you Ed B. for that!)\n",
|
||||
"\n",
|
||||
"Another Windows student Minh N. mentioned you may need to use this approach, from an activated environment in the command line: \n",
|
||||
"`modal token set --token-id <your_token_id> --token-secret <your_token_secret>`\n",
|
||||
"\n",
|
||||
"Also, a student David S. mentioned the following: \n",
|
||||
"> In case anyone else using Windows hits this problem: Along with having to run `modal token new` from a command prompt, you have to move the generated token file. It will deploy the token file (.modal.toml) to your Windows profile folder. The virtual environment couldn't see that location (strangely, it couldn't even after I set environment variables for it and rebooted). I moved that token file to the folder I'm operating out of for the lab and it stopped throwing auth errors.\n",
|
||||
"\n",
|
||||
"And another Windows student (Robert M. - thank you!!) added another possible step:\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"> I could not get modal to see my tokens (resulting in an 'auth error'), even after copying the \".modal.toml\" file to the \"week8\" folder and restarting JupyterLab. The fix was to manually set the environment variables (the standard way). This config method is explained by modal on their [web site](https://modal.com/docs/reference/modal.config) \n",
|
||||
"```\n",
|
||||
"import os\n",
|
||||
"os.environ[\"MODAL_TOKEN_ID\"] = \"xxx\"\n",
|
||||
"os.environ[\"MODAL_TOKEN_SECRET\"] = \"yyy\" \n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"Finally: I've also heard that in some situations, you might need to restart the Kernel of this jupyter notebook after running this. (Kernel menu >> Restart Kernel and Clear Outputs of All Cells)."
|
||||
]
|
||||
},
|
||||
@@ -81,7 +94,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Remove the '# ' from the next line and run the cell\n",
|
||||
"# Remove the '# ' from the next line and run the cell, or run this command without the excalamation mark from an activated command prompt\n",
|
||||
"# !modal setup"
|
||||
]
|
||||
},
|
||||
|
||||
@@ -348,7 +348,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"def ensemble_pricer(item):\n",
|
||||
" return ensemble.price(description(item))"
|
||||
" return max(0,ensemble.price(description(item)))"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -156,6 +156,28 @@
|
||||
"!python price_is_right_final.py"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "242d1243-fbec-4807-988b-8f70c8c9b806",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"<table style=\"margin: 0; text-align: left;\">\n",
|
||||
" <tr>\n",
|
||||
" <td style=\"width: 150px; height: 150px; vertical-align: middle;\">\n",
|
||||
" <img src=\"../important.jpg\" width=\"150\" height=\"150\" style=\"display: block;\" />\n",
|
||||
" </td>\n",
|
||||
" <td>\n",
|
||||
" <h2 style=\"color:#900;\">But wait!! There's more..</h2>\n",
|
||||
" <span style=\"color:#900;\">If you're not fed up of product prices yet 😂 I've built this out some more!<br/>\n",
|
||||
" If you look in my repo <a href=\"https://github.com/ed-donner/tech2ai\">tech2ai</a>, in segment3/lab1 is a neural network implementation of the pricer in pure PyTorch. It does pretty well..<br/>\n",
|
||||
" And in segment4/agents is this same Agent project taken further. There's a new version of the PlanningAgent called AutonomousPlanningAgent that uses multiple Tools, and a MessagingAgent that uses claude-3.7 to write texts.<br/>\n",
|
||||
" You could experiment with similar ideas to build out this framework.\n",
|
||||
" </span>\n",
|
||||
" </td>\n",
|
||||
" </tr>\n",
|
||||
"</table>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "331a2044-566f-4866-be4d-7542b7dfdf3f",
|
||||
@@ -169,7 +191,7 @@
|
||||
" <td>\n",
|
||||
" <h2 style=\"color:#090;\">CONGRATULATIONS AND THANK YOU!!!</h2>\n",
|
||||
" <span style=\"color:#090;\">\n",
|
||||
" It's so fabulous that you've made it to the end! My heartiest congratulations. Please stay in touch! I'm <a href=\"https://www.linkedin.com/in/eddonner/\">here on LinkedIn</a> if we're not already connected and I'm on X at <a href=\"https://x.com/edwarddonner\">@edwarddonner</a>. And my editor would be cross with me if I didn't mention one more time: it makes a HUGE difference when students rate this course on Udemy - it's one of the main ways that Udemy decides whether to show it to others. <br/><br/>Massive thanks again for putting up with me for 8 weeks and getting all the way to the final cell! I'm excited to hear all about your career as an LLM Engineer. <b>You could not have picked a better time to be in this field.</b>\n",
|
||||
" It's so fabulous that you've made it to the very end! My heartiest congratulations. Please stay in touch! I'm <a href=\"https://www.linkedin.com/in/eddonner/\">here on LinkedIn</a> if we're not already connected and I'm on X at <a href=\"https://x.com/edwarddonner\">@edwarddonner</a>. And my editor would be cross with me if I didn't mention one more time: it makes a HUGE difference when students rate this course on Udemy - it's one of the main ways that Udemy decides whether to show it to others. <br/><br/>Massive thanks again for putting up with me for 8 weeks and getting all the way to the final cell! I'm excited to hear all about your career as an LLM Engineer. If you post on LinkedIn about completing the course and tag me, then I'll weigh in to amplify your achievement. <br/><b>You could not have picked a better time to be in this field.</b>\n",
|
||||
" </span>\n",
|
||||
" </td>\n",
|
||||
" </tr>\n",
|
||||
|
||||
Reference in New Issue
Block a user