web explanation stub, 3 ratings

master 0.68
ml server 2020-01-21 19:44:57 -07:00
parent e0df22c385
commit 72f7a68a56
1 changed files with 32 additions and 1 deletions

View File

@ -48,6 +48,25 @@
"from IPython.display import display, Image"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"print(\"wut --- What U Think? SatNOGS Observation AI.\")\n",
"print(\"\")\n",
"print(\"Alpha stage web site. A model has been built of the DUV mode.\")\n",
"print(\"This site has 500+ DUV waterfalls the AI hasn't seen before.\")\n",
"print(\"When the page loads, the AI processes three random images and rates them.\")\n",
"print(\"\")\n",
"print(\"The plan is to have models of all SatNOGS modes (65 at present),\")\n",
"print(\"and you can enter an Observation ID and the AI will return a rating.\")\n",
"print(\"\")\n",
"print(\"Source Code:\")\n",
"print(\"https://spacecruft.org/spacecruft/satnogs-wut\")"
]
},
{
"cell_type": "code",
"execution_count": null,
@ -61,7 +80,9 @@
"test_dir = os.path.join(base_dir, 'test')\n",
"model_file = os.path.join(base_dir, 'models', 'wut-DUV-201912.tf')\n",
"print(model_file)\n",
"num_test = len(os.listdir(test_dir))"
"# Test all\n",
"#num_test = len(os.listdir(test_dir))\n",
"num_test = 3"
]
},
{
@ -124,6 +145,16 @@
" rating = 'bad'\n",
"else:\n",
" rating = 'good'\n",
"print('Observation: %s' % (rating))\n",
"if prediction_bool[1] == False:\n",
" rating = 'bad'\n",
"else:\n",
" rating = 'good'\n",
"print('Observation: %s' % (rating))\n",
"if prediction_bool[2] == False:\n",
" rating = 'bad'\n",
"else:\n",
" rating = 'good'\n",
"print('Observation: %s' % (rating))"
]
},