Skip to content

Commit

Permalink
small update to glm demo (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganjkurka authored and navdeep-G committed Mar 23, 2018
1 parent e35ac19 commit 3fa2b8f
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions examples/py/demos/H2O4GPU_GLM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import h2o4gpu\n",
Expand All @@ -16,7 +18,9 @@
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -77,7 +81,9 @@
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
Expand All @@ -100,7 +106,9 @@
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -135,7 +143,9 @@
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
Expand All @@ -160,14 +170,16 @@
"Make predictions on validation set\n",
"\"\"\"\n",
"print(\"Predictions per alpha\")\n",
"preds = model.predict(valid_x, valid_y)\n",
"preds = model.predict_proba(valid_x, valid_y)\n",
"print(preds)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -202,9 +214,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "env",
"display_name": "Python 3",
"language": "python",
"name": "env"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -216,7 +228,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
"version": "3.6.0"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 3fa2b8f

Please sign in to comment.