From f5faa2ef095f035110f83e17da0b35d3a34d6b97 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 17 Feb 2024 19:52:53 -0700 Subject: bump --- docs/posts/2019-12-08-Image-Classifier-Tensorflow.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/posts/2019-12-08-Image-Classifier-Tensorflow.html') diff --git a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html index a8491ee..4d27f40 100644 --- a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html +++ b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html @@ -26,7 +26,7 @@ - + @@ -35,6 +35,7 @@ home | about/links | posts | +3D designs | RSS Feed | -- cgit v1.2.3 From f6d2141a480dd6b5b8ee0e48d43bb64773232791 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 26 Mar 2024 23:38:14 -0600 Subject: add header ids --- .../2019-12-08-Image-Classifier-Tensorflow.html | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'docs/posts/2019-12-08-Image-Classifier-Tensorflow.html') diff --git a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html index 4d27f40..a5f7ef9 100644 --- a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html +++ b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html @@ -6,13 +6,13 @@ - Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria + id="creating-a-custom-image-classifier-using-tensorflow-2x-and-keras-for-detecting-malaria">Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria - - + Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria" /> + Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria" /> @@ -44,11 +44,11 @@
-

Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria

+

Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria

Done during Google Code-In. Org: Tensorflow.

-

Imports

+

Imports

%tensorflow_version 2.x #This is for telling Colab that you want to use TF 2.0, ignore if running on local machine
@@ -66,9 +66,9 @@
 
-

Dataset

+

Dataset

-

Fetching the Data

+

Fetching the Data

!wget ftp://lhcftp.nlm.nih.gov/Open-Access-Datasets/Malaria/cell_images.zip
@@ -76,7 +76,7 @@
 
-

Processing the Data

+

Processing the Data

We resize all the images as 50x50 and add the numpy array of that image as well as their label names (Infected or Not) to common arrays.

@@ -108,7 +108,7 @@ -

Splitting Data

+

Splitting Data

df = np.array(data)
@@ -125,9 +125,9 @@ y_train=y_train[s]
 X_train = X_train/255.0
 
-

Model

+

Model

-

Creating Model

+

Creating Model

By creating a sequential model, we create a linear stack of layers.

@@ -150,7 +150,7 @@ X_train = X_train/255.0
-

Compiling Model

+

Compiling Model

We use the Adam optimiser as it is an adaptive learning rate optimisation algorithm that's been designed specifically for training deep neural networks, which means it changes its learning rate automatically to get the best results

@@ -161,7 +161,7 @@ X_train = X_train/255.0 -

Training Model

+

Training Model

We train the model for 10 epochs on the training data and then validate it using the testing data

@@ -195,7 +195,7 @@ X_train = X_train/255.0 -

Results

+

Results

accuracy = history.history['accuracy'][-1]*100
-- 
cgit v1.2.3


From 9e620084e57378952c1a7f8e0a772ebebd18932b Mon Sep 17 00:00:00 2001
From: Navan Chauhan 
Date: Wed, 27 Mar 2024 20:35:09 -0600
Subject: quick fix

---
 docs/posts/2019-12-08-Image-Classifier-Tensorflow.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'docs/posts/2019-12-08-Image-Classifier-Tensorflow.html')

diff --git a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html
index a5f7ef9..b75bdca 100644
--- a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html
+++ b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html
@@ -6,13 +6,13 @@
     
     
     
-    id="creating-a-custom-image-classifier-using-tensorflow-2x-and-keras-for-detecting-malaria">Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
+    Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
     
     
     
-    Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria" />
-    Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria" />
+    
+    
     
     
     
-- 
cgit v1.2.3


From 01ff93c9c16867216f2d249664803860e1d6d5eb Mon Sep 17 00:00:00 2001
From: Navan Chauhan 
Date: Wed, 27 Mar 2024 22:49:40 -0600
Subject: generate new theme

---
 .../2019-12-08-Image-Classifier-Tensorflow.html    | 55 +++++++++++++++-------
 1 file changed, 37 insertions(+), 18 deletions(-)

(limited to 'docs/posts/2019-12-08-Image-Classifier-Tensorflow.html')

diff --git a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html
index b75bdca..7d88d48 100644
--- a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html
+++ b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html
@@ -2,14 +2,26 @@
 
 
     
-    
+    
+    
+    
+
+    Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
+
+    
+
+    
+
+    
+
     
     
     
-    Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
     
     
-    
     
     
     
@@ -29,21 +41,27 @@
     
     
 
-
-    
-
+ + +
-
- +

Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria

Done during Google Code-In. Org: Tensorflow.

@@ -224,14 +242,15 @@ X_train = X_train/255.0

Link to Colab Notebook

+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
-
+
-- cgit v1.2.3 From de19543d7fb44d343b052dc9b34ede78620c4a46 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 27 Mar 2024 23:36:55 -0600 Subject: Generate --- docs/posts/2019-12-08-Image-Classifier-Tensorflow.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'docs/posts/2019-12-08-Image-Classifier-Tensorflow.html') diff --git a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html index 7d88d48..f31915f 100644 --- a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html +++ b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html @@ -46,7 +46,7 @@
+ +
-- cgit v1.2.3 From a982ceab0b45609991179b3020a00260eed6f798 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 27 Mar 2024 23:45:59 -0600 Subject: css --- docs/posts/2019-12-08-Image-Classifier-Tensorflow.html | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/posts/2019-12-08-Image-Classifier-Tensorflow.html') diff --git a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html index f31915f..c9ee1e0 100644 --- a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html +++ b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html @@ -5,6 +5,7 @@ + Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria -- cgit v1.2.3