diff --git a/images/.DS_Store b/images/.DS_Store index 50a0f13e..e64a0961 100644 Binary files a/images/.DS_Store and b/images/.DS_Store differ diff --git a/pagefind/fragment/en_79314fe.pf_fragment b/pagefind/fragment/en_79314fe.pf_fragment deleted file mode 100644 index 96dc2a24..00000000 Binary files a/pagefind/fragment/en_79314fe.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_7ed07ec.pf_fragment b/pagefind/fragment/en_7ed07ec.pf_fragment deleted file mode 100644 index c63c6a51..00000000 Binary files a/pagefind/fragment/en_7ed07ec.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_91b142e.pf_fragment b/pagefind/fragment/en_91b142e.pf_fragment new file mode 100644 index 00000000..d71cd16b Binary files /dev/null and b/pagefind/fragment/en_91b142e.pf_fragment differ diff --git a/pagefind/fragment/en_a289d28.pf_fragment b/pagefind/fragment/en_a289d28.pf_fragment deleted file mode 100644 index bc44b043..00000000 Binary files a/pagefind/fragment/en_a289d28.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_a4a46a2.pf_fragment b/pagefind/fragment/en_a4a46a2.pf_fragment new file mode 100644 index 00000000..5a421aa5 Binary files /dev/null and b/pagefind/fragment/en_a4a46a2.pf_fragment differ diff --git a/pagefind/fragment/en_c7d3178.pf_fragment b/pagefind/fragment/en_c7d3178.pf_fragment new file mode 100644 index 00000000..acc40e3b Binary files /dev/null and b/pagefind/fragment/en_c7d3178.pf_fragment differ diff --git a/pagefind/index/en_106aec4.pf_index b/pagefind/index/en_106aec4.pf_index deleted file mode 100644 index 683e3093..00000000 Binary files a/pagefind/index/en_106aec4.pf_index and /dev/null differ diff --git a/pagefind/index/en_12a8f48.pf_index b/pagefind/index/en_12a8f48.pf_index new file mode 100644 index 00000000..7d383ffc Binary files /dev/null and b/pagefind/index/en_12a8f48.pf_index differ diff --git a/pagefind/index/en_152c89c.pf_index b/pagefind/index/en_152c89c.pf_index deleted file mode 100644 index 1da19cee..00000000 Binary files a/pagefind/index/en_152c89c.pf_index and /dev/null differ diff --git a/pagefind/index/en_1e365ce.pf_index b/pagefind/index/en_1e365ce.pf_index new file mode 100644 index 00000000..bbe25112 Binary files /dev/null and b/pagefind/index/en_1e365ce.pf_index differ diff --git a/pagefind/index/en_2083d6f.pf_index b/pagefind/index/en_2083d6f.pf_index new file mode 100644 index 00000000..c5db5e36 Binary files /dev/null and b/pagefind/index/en_2083d6f.pf_index differ diff --git a/pagefind/index/en_2235b15.pf_index b/pagefind/index/en_2235b15.pf_index new file mode 100644 index 00000000..fa5f8b7b Binary files /dev/null and b/pagefind/index/en_2235b15.pf_index differ diff --git a/pagefind/index/en_22f5b4e.pf_index b/pagefind/index/en_22f5b4e.pf_index deleted file mode 100644 index cf524d3a..00000000 Binary files a/pagefind/index/en_22f5b4e.pf_index and /dev/null differ diff --git a/pagefind/index/en_23878ce.pf_index b/pagefind/index/en_23878ce.pf_index deleted file mode 100644 index 349cbf36..00000000 Binary files a/pagefind/index/en_23878ce.pf_index and /dev/null differ diff --git a/pagefind/index/en_32161f1.pf_index b/pagefind/index/en_32161f1.pf_index new file mode 100644 index 00000000..3c76e88d Binary files /dev/null and b/pagefind/index/en_32161f1.pf_index differ diff --git a/pagefind/index/en_3418185.pf_index b/pagefind/index/en_3418185.pf_index deleted file mode 100644 index a40d6077..00000000 Binary files a/pagefind/index/en_3418185.pf_index and /dev/null differ diff --git a/pagefind/index/en_3e7b2d5.pf_index b/pagefind/index/en_3e7b2d5.pf_index deleted file mode 100644 index d9227991..00000000 Binary files a/pagefind/index/en_3e7b2d5.pf_index and /dev/null differ diff --git a/pagefind/index/en_512e2ca.pf_index b/pagefind/index/en_512e2ca.pf_index new file mode 100644 index 00000000..c4be4088 Binary files /dev/null and b/pagefind/index/en_512e2ca.pf_index differ diff --git a/pagefind/index/en_5c988f2.pf_index b/pagefind/index/en_5c988f2.pf_index deleted file mode 100644 index 48ba39ff..00000000 Binary files a/pagefind/index/en_5c988f2.pf_index and /dev/null differ diff --git a/pagefind/index/en_6077432.pf_index b/pagefind/index/en_6077432.pf_index deleted file mode 100644 index 51230d86..00000000 Binary files a/pagefind/index/en_6077432.pf_index and /dev/null differ diff --git a/pagefind/index/en_68e7d06.pf_index b/pagefind/index/en_68e7d06.pf_index deleted file mode 100644 index 2bf8996f..00000000 Binary files a/pagefind/index/en_68e7d06.pf_index and /dev/null differ diff --git a/pagefind/index/en_6ff918c.pf_index b/pagefind/index/en_6ff918c.pf_index deleted file mode 100644 index 7db7bdef..00000000 Binary files a/pagefind/index/en_6ff918c.pf_index and /dev/null differ diff --git a/pagefind/index/en_71cd4a4.pf_index b/pagefind/index/en_71cd4a4.pf_index new file mode 100644 index 00000000..08ddd721 Binary files /dev/null and b/pagefind/index/en_71cd4a4.pf_index differ diff --git a/pagefind/index/en_7b1ae23.pf_index b/pagefind/index/en_7b1ae23.pf_index new file mode 100644 index 00000000..547e1c64 Binary files /dev/null and b/pagefind/index/en_7b1ae23.pf_index differ diff --git a/pagefind/index/en_7ea44f2.pf_index b/pagefind/index/en_7ea44f2.pf_index deleted file mode 100644 index 57d9f25c..00000000 Binary files a/pagefind/index/en_7ea44f2.pf_index and /dev/null differ diff --git a/pagefind/index/en_89befde.pf_index b/pagefind/index/en_89befde.pf_index deleted file mode 100644 index 1fa63cca..00000000 Binary files a/pagefind/index/en_89befde.pf_index and /dev/null differ diff --git a/pagefind/index/en_8d1fc74.pf_index b/pagefind/index/en_8d1fc74.pf_index new file mode 100644 index 00000000..25c83c42 Binary files /dev/null and b/pagefind/index/en_8d1fc74.pf_index differ diff --git a/pagefind/index/en_9629f9b.pf_index b/pagefind/index/en_9629f9b.pf_index deleted file mode 100644 index 094a8e38..00000000 Binary files a/pagefind/index/en_9629f9b.pf_index and /dev/null differ diff --git a/pagefind/index/en_967742d.pf_index b/pagefind/index/en_967742d.pf_index deleted file mode 100644 index 69d05365..00000000 Binary files a/pagefind/index/en_967742d.pf_index and /dev/null differ diff --git a/pagefind/index/en_96aa676.pf_index b/pagefind/index/en_96aa676.pf_index new file mode 100644 index 00000000..50726fde Binary files /dev/null and b/pagefind/index/en_96aa676.pf_index differ diff --git a/pagefind/index/en_a39a543.pf_index b/pagefind/index/en_a39a543.pf_index new file mode 100644 index 00000000..a925d714 Binary files /dev/null and b/pagefind/index/en_a39a543.pf_index differ diff --git a/pagefind/index/en_a4db7a6.pf_index b/pagefind/index/en_a4db7a6.pf_index new file mode 100644 index 00000000..de218ca8 Binary files /dev/null and b/pagefind/index/en_a4db7a6.pf_index differ diff --git a/pagefind/index/en_aa1bc72.pf_index b/pagefind/index/en_aa1bc72.pf_index deleted file mode 100644 index 4a0931a6..00000000 Binary files a/pagefind/index/en_aa1bc72.pf_index and /dev/null differ diff --git a/pagefind/index/en_b22b658.pf_index b/pagefind/index/en_b22b658.pf_index deleted file mode 100644 index bf09c52f..00000000 Binary files a/pagefind/index/en_b22b658.pf_index and /dev/null differ diff --git a/pagefind/index/en_b4e7fa5.pf_index b/pagefind/index/en_b4e7fa5.pf_index new file mode 100644 index 00000000..68a93f46 Binary files /dev/null and b/pagefind/index/en_b4e7fa5.pf_index differ diff --git a/pagefind/index/en_cbf337f.pf_index b/pagefind/index/en_cbf337f.pf_index new file mode 100644 index 00000000..c1593cdc Binary files /dev/null and b/pagefind/index/en_cbf337f.pf_index differ diff --git a/pagefind/index/en_cf37d9b.pf_index b/pagefind/index/en_cf37d9b.pf_index new file mode 100644 index 00000000..4f451f0d Binary files /dev/null and b/pagefind/index/en_cf37d9b.pf_index differ diff --git a/pagefind/index/en_da741e7.pf_index b/pagefind/index/en_da741e7.pf_index deleted file mode 100644 index ef8626a0..00000000 Binary files a/pagefind/index/en_da741e7.pf_index and /dev/null differ diff --git a/pagefind/index/en_eafed21.pf_index b/pagefind/index/en_eafed21.pf_index new file mode 100644 index 00000000..b7a2c5ea Binary files /dev/null and b/pagefind/index/en_eafed21.pf_index differ diff --git a/pagefind/index/en_ffb0a7c.pf_index b/pagefind/index/en_ffb0a7c.pf_index new file mode 100644 index 00000000..a878e165 Binary files /dev/null and b/pagefind/index/en_ffb0a7c.pf_index differ diff --git a/pagefind/pagefind-entry.json b/pagefind/pagefind-entry.json index 3ffe14b8..50ff851a 100644 --- a/pagefind/pagefind-entry.json +++ b/pagefind/pagefind-entry.json @@ -1 +1 @@ -{"version":"1.3.0","languages":{"en":{"hash":"en_a6c5e8c4a2","wasm":"en","page_count":183}}} \ No newline at end of file +{"version":"1.3.0","languages":{"en":{"hash":"en_83157e7a3f","wasm":"en","page_count":183}}} \ No newline at end of file diff --git a/pagefind/pagefind.en_83157e7a3f.pf_meta b/pagefind/pagefind.en_83157e7a3f.pf_meta new file mode 100644 index 00000000..f112fd52 Binary files /dev/null and b/pagefind/pagefind.en_83157e7a3f.pf_meta differ diff --git a/pagefind/pagefind.en_a6c5e8c4a2.pf_meta b/pagefind/pagefind.en_a6c5e8c4a2.pf_meta deleted file mode 100644 index c0eeb9a6..00000000 Binary files a/pagefind/pagefind.en_a6c5e8c4a2.pf_meta and /dev/null differ diff --git a/posts/claudeslens/index.html b/posts/claudeslens/index.html index 55e8dc79..fa641ec0 100644 --- a/posts/claudeslens/index.html +++ b/posts/claudeslens/index.html @@ -220,7 +220,7 @@ [data-astro-image]{width:100%;height:auto;-o-object-fit:var(--fit);object-fit:var(--fit);-o-object-position:var(--pos);object-position:var(--pos);aspect-ratio:var(--w) / var(--h)}[data-astro-image=responsive]{max-width:calc(var(--w) * 1px);max-height:calc(var(--h) * 1px)}[data-astro-image=fixed]{width:calc(var(--w) * 1px);height:calc(var(--h) * 1px)}
+
16 min read

My BSc Thesis, ClaudesLens

Table of Contents

ClaudesLens

@@ -913,7 +913,7 @@

Images

So, a single pixel in an image is represented as a vector, therefore a whole image can be represented as a 3-dimensional tensor. We will just think of a tensor as a matrix of matrices, as long as the input has the numerical properties for matrix and vector operations.

Entropy

-

Now that we have covered the basics of neural networks and computer vision (in our use case that is), we can move on to the main topic of this thesis: Entropy.

+

Now that we have covered the basics of neural networks and computer vision (in our use case that is), we can move on to the main topic of this thesis, entropy.

Uncertainty in Information Theory

Now, when we are talking about entropy, we are talking about the information kind of entropy. Thanks to the great work of Claude Shannon, we have a way to quantify the uncertainty of a random variable. 5

@@ -1073,7 +1073,7 @@

PSI: Perturbation Stability Index

We hypothesize that this should be the case, this is why we calculate the sample-level (over our $N$ samples/random draws) correlation between them.

Note, that by doing this, we,

    -
  • Penalizes it if higher entropy → more correct predictions.
  • +
  • Penalizes the model if higher entropy → more correct predictions.
  • Penalizes the model less if higher entropy → more errors.

Essentially, if the model “knows when it is uncertain” (this is very handwavey), it gets a higher PSI.

@@ -1089,15 +1089,15 @@

Mapping entropy categorically

The function mapping $\mathbf{x} \mapsto h$ can be understood as the probability of making a correct prediction within all draws from the data, which have the same entropy as $\mathbf{x}$. This means we can categorize images based on their entropy and gain insight into the model’s predictions without seeing the ground truth label.

Results

-

Now, during the majority of the project and the results section in our report, we adopted our framework to three different models to investigate whether our hypothesis held. -TLDR, yes, so I won’t bore you with those results and graphs.

-

I instead want to focus on the potential applications.

+

Now, during the majority of the project and the results section in our report, we adopted our framework to three different models to investigate whether our hypothesis held.

+

In short, yes, so I won’t bore you with those results and graphs. +I instead want to focus on the potential applications.

Near the end of our thesis, our supervisor wanted us to check the different entropies of the images in our dataset (MNIST in our case). From our framework, the higher entropy digits should have higher classification errors, on average.

So we tested this!

Figure 4: Highest (left) and lowest (right) entropy of the digit four for a specific model.

-

From Figure 4, we can see that, if that specific model is presented with the digit four, the ones that resemble the one on the right (lowest entropy) will most likely be classified correctly. +

From Figure 4, we can see that, if that specific model is presented with a digit four that resemble the one on the right (lowest entropy) will most likely be classified correctly. Compared to the four on the left (highest entropy), which will most likely be classified incorrectly.

Note, we are talking about the inherent uncertainty of the model here, not the entropy of the input itself. This just means that this specific models prefers digit fours that have the characteristics of the one on the right, to the one on the left.

@@ -1143,7 +1143,7 @@

Acknowledgements

Original Tweet

-
© 2024 • rezarezvan.com
+