Skip to content

Commit

Permalink
2.7 - Machine Learning- porting in content
Browse files Browse the repository at this point in the history
  • Loading branch information
maryfries committed Nov 23, 2024
1 parent 53457ea commit cca8145
Show file tree
Hide file tree
Showing 16 changed files with 318 additions and 161 deletions.
Binary file added sparks/img/U2/lab07/graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sparks/img/U2/lab07/list-point-long-reporting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sparks/img/U2/lab07/list-point-reporting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sparks/img/U2/lab07/list-point.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sparks/img/U2/lab07/set-to-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sparks/img/U2/lab07/set-training-data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sparks/img/U2/lab07/steps01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sparks/img/U2/lab07/steps02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sparks/img/U2/lab07/steps03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sparks/img/U2/lab07/steps04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sparks/img/U2/lab07/training-data-watcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion sparks/student-pages/U2/L6/01-movie-recommender.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

<body>
<h2>Movie Recommender</h2>
<div class="learn">In this lab, you'll build a movie recommendation engine, using lots of lists along the way.</div>
<div class="todo">
<p>See also: "Lab_ Movie recommender [Teacher slides].pptx" in Pamela's ZIP file.</p>
<p><a href="https://snap.berkeley.edu/snap/snap.html#present:Username=dcbriccetti&ProjectName=Genre%20Recommender%20FP%2C%20refactored">Dave also has a version here</a> that uses map</p>
</div>
<div class="learn">In this lab, you'll build a movie recommendation engine, using lots of lists along the way.</div>
<p>Have you ever been recommended something by an app? Perhaps it suggested a new product for you to buy, a new song for your playlist, or a video similar to your favorite videos? </p>
<p>Many web applications include recommendations, since they can be both good for the user (finding something new you enjoy!) and good for the application (more usage often means more profit). </p>

Expand Down
367 changes: 207 additions & 160 deletions sparks/student-pages/U2/L7/01-machine-learning.html

Large diffs are not rendered by default.

106 changes: 106 additions & 0 deletions sparks/teaching-guide/U2/07-machine-learning.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script type="text/javascript" src="/bjc-r/llab/loader.js"></script>
<title>Sparks Unit 2 Lab 7 Teacher Guide</title>
</head>

<body>
<h2>Lab 7: Machine Learning</h2>
<p>PURPOSE STATEMENT</p>

<h3>Pacing</h3>
<p>
This lab is designed for X&ndash;X class periods (<strong>X&ndash;X minutes</strong>).
<ul>
<li><a href="#A1" title="Activity 1: Logic">Activity 1: OLD FROM L5</a>: X&ndash;X minutes</li>
</ul>
</p>

<div class="todo">Teachers Resources

Lesson Plan
● [8 min] Intro, make predictions, put post-it notes on wall and compare
● [30 min] Get data with hula hoop activity
● [10 minutes] Digitize the data
● [5 minutes] Build the model
● [5 minutes] Visualize
● [10 minutes] Test the model (compare with classmates or whole class, discuss what's a reasonable error, decide whether any data needs to be re-collected)
● [15 minutes] Make predictions (compare to post-its, discuss the questions)
Standards

2-DA-09 Refine computational models based on the data they have generated.
A model may be a programmed simulation of events or a representation of how various data is related. In order to refine a model, students need to consider which data points are relevant, how data points relate to each other, and if the data is accurate. For example, students may make a prediction about how far a ball will travel based on a table of data related to the height and angle of a track. The students could then test and refine their model by comparing predicted versus actual results and considering whether other factors are relevant (e.g., size and mass of the ball). Additionally, students could refine game mechanics based on test outcomes in order to make the game more balanced or fair.
Practice(s): Creating Computational Artifacts, Developing and Using Abstractions: 5.3, 4.4

2-AP-11 Create clearly named variables that represent different data types and perform operations on their values.
A variable is like a container with a name, in which the contents may change, but the name (identifier) does not. When planning and developing programs, students should decide when and how to declare and name new variables. Students should use naming conventions to improve program readability. Examples of operations include adding points to the score, combining user input with words to make a sentence, changing the size of a picture, or adding a name to a list of people.
Practice(s): Creating Computational Artifacts: 5.1, 5.2

</div>

<div w3-include-html="/bjc-r/utilities/includes/sparks-citn.txt"></div>

<a class="back-to-top" href="#top">&uarr; Back to Top</a>
<h3>Activity X: .<a name="AX" class="anchor">&nbsp;</a></h3>
<div>
<ul>
<li><strong>Materials:</strong> </li>
<li>
<strong>Prepare:</strong>
<ul>
<li></li>
</ul>
</li>
<li>
<strong>Learning Goals:</strong>
<ul>
<li></li>
</ul>
</li>
<li>
<strong>Activity Plan:</strong>
<ul>
<li></li>
</ul>
</li>
<li>
<strong>Tips:</strong>
<ul>
<li></li>
</ul>
</li>
<li>
<strong>Standards:</strong>
<ul>
<li></li>
</ul>
</li>
</ul>
</div>

<!--<h3>Assignments</h3>
<div>
<ul>
<li>...</li>
</ul>
</div>
<h3>Solutions</h3>
<div>
<ul>
<li>...</li>
</ul>
</div>-->

<h3>Correlation with CSTA Standards<a name="Standards" class="anchor">&nbsp;</a></h3>
<div class="Standards">
<ul>
<li></li>
</ul>
</div>

</body>
</html>

0 comments on commit cca8145

Please sign in to comment.