AA228-CS238-Student

所属分类:Julia编程
开发工具:Julia
文件大小:0KB
下载次数:0
上传日期:2022-12-16 21:36:53
上 传 者sh-1993
说明:  斯坦福大学AA228 CS238的起始代码_和_数据文件,2021年秋
(Starter code _and_ data files for AA228 CS238 at Stanford University, Autumn 2021)

文件列表:
LINKS.md (1421, 2023-10-18)
project1/ (0, 2023-10-18)
project1/data/ (0, 2023-10-18)
project1/data/large.csv (1000150, 2023-10-18)
project1/data/medium.csv (117714, 2023-10-18)
project1/data/small.csv (14321, 2023-10-18)
project1/example/ (0, 2023-10-18)
project1/example/example.csv (285, 2023-10-18)
project1/example/example.gph (74, 2023-10-18)
project1/example/example.pdf (4487, 2023-10-18)
project1/example/example.score (20, 2023-10-18)
project1/example/titanicexample.gph (80, 2023-10-18)
project1/project1.jl (802, 2023-10-18)
project1/project1.py (705, 2023-10-18)
project2/ (0, 2023-10-18)
project2/data/ (0, 2023-10-18)
project2/data/large.csv (1801359, 2023-10-18)
project2/data/medium.csv (1808535, 2023-10-18)
project2/data/small.csv (493129, 2023-10-18)

# AA228-CS238-Student [![AA228/CS238 Gradescope](https://img.shields.io/badge/aa228%2Fcs238-gradescope-green?color=42a0a2)](https://www.gradescope.com/courses/306587) [AA228/CS238: Decision Making under Uncertainty](https://aa228.stanford.edu), Winter 2023, Stanford University. This repository provides starter code and data for Projects 1 and 2. ## Project 1: Bayesian Structure Learning [![Project 1 Details](https://img.shields.io/badge/project1-details-blue)](https://web.stanford.edu/class/aa228/cgi-bin/wp/project-1/) [![Project 1 Template](https://img.shields.io/badge/project1-LaTeX%20template-white)](https://www.overleaf.com/read/hxwgtnksxtts) [LaTeX Overleaf template](https://www.overleaf.com/read/hxwgtnksxtts): click the link, go to "Menu", and "Copy Project" (make sure you're signed into Overleaf). Note this is an optional template, you're free to use your own (or not even LaTeX). project1/ ├── data # CSV data files to apply structured learning │ ├── small.csv # Titanic dataset │ ├── medium.csv # Wine dataset │ └── large.csv # Secret dataset ├── example # Helpful examples │ ├── example.gph # Example graph (3 parents, 2 children with 1 parent each and 1 child with 3 parents) │ ├── example.csv # Example data generated from "example.gph" │ ├── example.score # Bayesian score of the "examples.gph" given the data "examples.csv" │ ├── examples.pdf # Visualized "examples.gph" as a TikZ graph │ └── titanicexample.pdf # Simple example network using "small.csv" ├── project1.jl # Starter code in Julia (optional, meant to help) └── project1.py # Starter code in Python (optional, meant to help) Notes: - The starter code is there to help, but you're free to use any language. - Use `example.gph` to validate your Bayesian scoring algorithm, not your structure learning algorithm. 1https://cran.r-project.org/web/packages/titanic/titanic.pdf
2https://archive.ics.uci.edu/ml/datasets/Wine+Quality #### Graph Plotting Here are some resources for plotting graphs in Julia, Python, and MATLAB. - Julia: - [`TikzGraphs.jl`](https://nbviewer.jupyter.org/github/JuliaTeX/TikzGraphs.jl/blob/master/doc/TikzGraphs.ipynb) - [`GraphPlot.jl`](https://github.com/JuliaGraphs/GraphPlot.jl) - [`Graphs.jl`](https://juliagraphs.org/Graphs.jl/dev/) - Python: - [`NetworkX`](https://networkx.github.io/documentation/stable/tutorial.html) - MATLAB: - [`GraphPlot`](https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.graphplot.html) Here's a minimum working example using `TikzGraphs.jl` in Julia: ```julia using Graphs # for DiGraph and add_edge! using TikzGraphs # for TikZ plot output using TikzPictures # to save TikZ as PDF g = DiGraph(2) # create a directed graph add_edge!(g, 1, 2) # add edge from node 1 to node 2 p = plot(g, ["First", "Second"]) # create TikZ plot with labels save(PDF("graph.pdf"), p) # save TikZ as PDF ``` ## Project 2: Reinforcement Learning [![Project 2 Details](https://img.shields.io/badge/project2-details-blue)](https://web.stanford.edu/class/aa228/cgi-bin/wp/project-2/) [![Project 2 Template](https://img.shields.io/badge/project2-LaTeX%20template-white)](https://www.overleaf.com/read/gsptsmcrzpdv) [LaTeX Overleaf template](https://www.overleaf.com/read/gsptsmcrzpdv): click the link, go to "Menu", and "Copy Project" (make sure you're signed into Overleaf). Note this is an optional template, you're free to use your own (or not even LaTeX). project2/ └── data # CSV data files of (s,a,r,sp) ├── small.csv # 10x10 grid world ├── medium.csv # MountainCarContinuous-v0 └── large.csv # Secret RL problem *Note: no starter code provided for Project 2.* ## Contact Please post on [Ed](https://edstem.org/) with any questions regarding this code, the data, and the projects in general. We'd be happy to help!

近期下载者

相关文件


收藏者