Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Melissa Kwan Assignments Days 1-2 #28

Open
wants to merge 17 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*~
.DS_Store
.ipynb_checkpoints/
.DS_Store
60 changes: 60 additions & 0 deletions Untitled Folder/Practice with Python.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'plt' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-1-f157ea92c383>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0mss\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0mplt\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mplot\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mss\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 3\u001b[0m \u001b[0mplt\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshow\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mNameError\u001b[0m: name 'plt' is not defined"
]
}
],
"source": [
"plt\n",
"ss = [1,2,1,2,1]\n",
"plt.plot(ss)\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.0b2"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
40 changes: 40 additions & 0 deletions projects/1-explications/Kwan.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Artificial intelligence start out as a technical endeavor, but it is always grounded in real world contexts. As a result, many AI systems seek to predict human behavior and imitate the human tendency to handle new situations based on past experiences.\n",
"\n",
"Predicting human behavior is far too large a challenge to undertake with a knowledge-based approach. As a result, Stanford University researchers Ethan Fast, William McGrath, Pranav Rajpurkar, and Michael S. Bernstein took the statistical approach, drawing upon Wattpad, a huge database of online fiction, as a training set for their AI. By analyzing actions in fiction, Augur, their AI, drew conclusions about human behavior and applied them to new situations.\n",
"\n",
"From a knowledge representation standpoint, Augur uses natural language processing to parse text into actions, and inputs those actions into a vector space model. TC, the language the researchers use to parse text, uses subject-verb relationships to detect actions. It creates associations between words, such as “grocery store” and “fruit,” according to the paper. It then maps this data onto vector maps called Activity Detection, Object Affordances, and Activity Prediction, which represent the data graphically and can detect patterns in it.\n",
"\n",
"As the paper states, statistical analysis does a much more thorough job detecting mundane human actions because no single researchers could accurately document the huge set of human activities in a knowledge-based system.\n",
"\n",
"However, fiction still has its drawbacks. The Stanford researchers assert that fiction represents a surprisingly accurate portrayal of modern life, but it still tends to be more dramatic than in real life. For instance, The Stack notes that the “Augur-based prediction system is most likely, when identifying a cat, to predict that the next thing it will do is hiss.” Until Augur can adjust its training set to include episodes from real life instead of modern fiction, its data will be fundamentally flawed."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.0b2"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
51 changes: 51 additions & 0 deletions projects/1-hello-world/Kwan.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Hi, my name is Melissa. I'm a Bay Area native who first learned programming by taking a Python course online. Since then, I've taken classes in Java and C++, including APCS this past year.\n",
"\n",
"Though I've programmed in class, until this year I was pretty unaware of the large coding community that exists online through Firebase, Mongo.db, Github, and other platforms. My experience coding is limited to localized programs like Minesweeper and Sudoku, and I hope to expand the scope of my projects through online sharing.\n",
"\n",
"By the end of this class, I hope to have a more concrete understanding of artificial intelligence, which is currently a pretty abstract concept in my mind. I've read so much about the ethical concerns and the vague possibilities of AI, but I want to understand the actual code first before considering the implications.\n",
"\n",
"Outside of CS, I have played club volleyball for 5 years. I have played every single position (outside, right side, setter, libero) except for middle hitter. I'm also on the yearbook staff at my school, where I discovered my interest in graphic design.\n",
"\n",
"Thanks for reading!"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"print(\"Melissa Kwan\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.0b2"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Loading