Skip to content

Commit

Permalink
working on reaching baseline with 2 actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cjGO committed Aug 9, 2024
1 parent e8ae8bb commit dd50f30
Show file tree
Hide file tree
Showing 3 changed files with 1,183 additions and 60 deletions.
42 changes: 29 additions & 13 deletions dev_nbs/003_blog_start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,27 +64,43 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 2,
"id": "c487d297",
"metadata": {},
"outputs": [
{
"ename": "FileNotFoundError",
"evalue": "[Errno 2] No such file or directory: 'g2f.npy'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[8], line 3\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mnumpy\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mnp\u001b[39;00m\n\u001b[0;32m----> 3\u001b[0m \u001b[43mnp\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mg2f.npy\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m)\u001b[49m\n",
"File \u001b[0;32m/usr/local/lib/python3.11/dist-packages/numpy/lib/npyio.py:427\u001b[0m, in \u001b[0;36mload\u001b[0;34m(file, mmap_mode, allow_pickle, fix_imports, encoding, max_header_size)\u001b[0m\n\u001b[1;32m 425\u001b[0m own_fid \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mFalse\u001b[39;00m\n\u001b[1;32m 426\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[0;32m--> 427\u001b[0m fid \u001b[38;5;241m=\u001b[39m stack\u001b[38;5;241m.\u001b[39menter_context(\u001b[38;5;28;43mopen\u001b[39;49m\u001b[43m(\u001b[49m\u001b[43mos_fspath\u001b[49m\u001b[43m(\u001b[49m\u001b[43mfile\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mrb\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m)\n\u001b[1;32m 428\u001b[0m own_fid \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mTrue\u001b[39;00m\n\u001b[1;32m 430\u001b[0m \u001b[38;5;66;03m# Code to distinguish from NumPy binary files and pickles.\u001b[39;00m\n",
"\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] No such file or directory: 'g2f.npy'"
]
"data": {
"text/plain": [
"array([[[-1, -1, -1, ..., 1, 1, 1],\n",
" [-1, -1, -1, ..., 1, 1, 1]],\n",
"\n",
" [[ 1, 0, 0, ..., 1, 1, 1],\n",
" [ 1, 0, 0, ..., 1, 1, 1]],\n",
"\n",
" [[ 1, 1, 1, ..., 1, 1, 1],\n",
" [ 1, 1, 1, ..., 1, 1, 1]],\n",
"\n",
" ...,\n",
"\n",
" [[ 1, 0, 0, ..., 1, 1, 1],\n",
" [ 1, 0, 0, ..., 1, 1, 1]],\n",
"\n",
" [[ 1, 0, 0, ..., 1, 1, 1],\n",
" [ 1, 0, 0, ..., 1, 1, 1]],\n",
"\n",
" [[ 1, 1, 1, ..., 0, 0, 0],\n",
" [ 1, 1, 1, ..., 0, 0, 0]]], dtype=int8)"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import numpy as np\n",
"\n",
"np.load('g2f.npy')"
"np.load('g2f_ch10.npy')"
]
},
{
Expand Down Expand Up @@ -1122,7 +1138,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit dd50f30

Please sign in to comment.