-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (61 loc) · 3.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="description" content="PSAML : PySpark Sensitivity Analysis of ML models">
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
<title>PSAML</title>
</head>
<body>
<!-- HEADER -->
<div id="header_wrap" class="outer">
<header class="inner">
<a id="forkme_banner" href="https://github.com/psaml/PSAML">View on GitHub</a>
<h1 id="project_title">PSAML</h1>
<h2 id="project_tagline">PySpark Sensitivity Analysis of ML models</h2>
<section id="downloads">
<a class="zip_download_link" href="https://github.com/psaml/PSAML/zipball/master">Download this project as a .zip file</a>
<a class="tar_download_link" href="https://github.com/psaml/PSAML/tarball/master">Download this project as a tar.gz file</a>
</section>
</header>
</div>
<!-- MAIN CONTENT -->
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner">
<p>
This is our research for ThinkBig Analytics to make a PySpark package that performs sensitivity analysis on spark.ml models for BYU's CS 401R: Data Mining class.
</p>
<hr/>
<p>
The use case is you have a Model already trained against some data you have in a DataFrame (or a sampling thereof) which contains ONLY continuous, numerical input data, and you would like to perofrm sensitivity analysis on some or all of the input variables. For now, only floating-point input columns are supported. Performing an analysis is as easy as making two function calls:
</p>
<ul>
<li>
<code>make_data_info()</code> build input DataFrame in one call with your training data, which as a parameter to the next function will tell PSAML how to perform your analysis.
</li>
<li>
<code>do_continuous_input_analysis()</code> get final prediction DataFrame by providing the first step's output and your Model. We are looking into supporting categorical input as well in the near future!
</li>
</ul>
<hr/>
<p>
The test_psaml file is useful for just that: testing. It is suppose to mimic a PSAML caller. To use PSAML in your own environment with your own Models, simply import the psaml.py file and call the two functions listed above. The other functions are private helpers to perform the analysis.
</p>
<hr/>
<p>
To use CSV files as input data, include the following in your spark-submit or pyspark launch:
</p>
<code>
--packages com.databricks:spark-csv_2.11:1.3.0
</code>
</section>
</div>
<!-- FOOTER -->
<div id="footer_wrap" class="outer">
<footer class="inner">
<p>Published with <a href="https://pages.github.com">GitHub Pages</a></p>
</footer>
</div>
</body>
</html>