Skip to content

Commit

Permalink
updated changelog.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oguiza committed Nov 13, 2023
2 parents b060f89 + 337b0db commit bbc0d93
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@
}
],
"source": [
"print(f'X array: {os.path.getsize(\"./data/X_on_disk.npy\"):12} bytes ({bytes2GB(os.path.getsize(\"./data/X_on_disk.npy\")):3.2f} GB)')\n",
"print(f'y array: {os.path.getsize(\"./data/y_on_disk.npy\"):12} bytes ({bytes2GB(os.path.getsize(\"./data/y_on_disk.npy\")):3.2f} GB)')"
"print(f'X array: {os.path.getsize(\"./data/X_on_disk.npy\"):12} bytes ({bytes2str(os.path.getsize(\"./data/X_on_disk.npy\"))})')\n",
"print(f'y array: {os.path.getsize(\"./data/y_on_disk.npy\"):12} bytes ({bytes2str(os.path.getsize(\"./data/y_on_disk.npy\"))})')\n"
]
},
{
Expand Down Expand Up @@ -299,8 +299,8 @@
}
],
"source": [
"print(f'X array on disk: {sys.getsizeof(X_on_disk):12} bytes ({bytes2GB(sys.getsizeof(X_on_disk)):3.3f} GB)')\n",
"print(f'y array on disk: {sys.getsizeof(y_on_disk):12} bytes ({bytes2GB(sys.getsizeof(y_on_disk)):3.3f} GB)')"
"print(f'X array on disk: {sys.getsizeof(X_on_disk):12} bytes ({bytes2str(sys.getsizeof(X_on_disk))})')\n",
"print(f'y array on disk: {sys.getsizeof(y_on_disk):12} bytes ({bytes2str(sys.getsizeof(y_on_disk))})')"
]
},
{
Expand Down Expand Up @@ -1225,7 +1225,7 @@
"Let's now check performance of the combined process: slicing plus conversion to a tensor. Based on what we've seen there are 3 options: \n",
"\n",
"- slice np.array in memory + conversion to tensor\n",
"- slice np.memamap on disk + conversion to tensor\n",
"- slice np.memmap on disk + conversion to tensor\n",
"- slice itemified np.memmap + converion to tensor"
]
},
Expand Down

0 comments on commit bbc0d93

Please sign in to comment.