This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feature_extraction_model = tf.keras.Model(inputs=model.inputs, outputs=model.get_layer("dense_2").output) | |
feature_extraction_output = feature_extraction_model.predict(test_images) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!pip install -q tensorflow-gpu==2.0.0-rc1 | |
import tensorflow as tf | |
import tensorflow.keras.backend as K | |
from tensorflow.keras import datasets, layers, models | |
try: | |
# %tensorflow_version only exists in Colab. | |
%tensorflow_version 2.x | |
except Exception: | |
print("Failed to load 2.X") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
# %tensorflow_version only exists in Colab. | |
%tensorflow_version 2.2 | |
except Exception: | |
print("Failed to load 2.2") | |
!pip install -q tensorflow-gpu | |
from __future__ import absolute_import, division, print_function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is Feature Extraction Part of conv net | |
def feature_extraction_part_conv_net(x): | |
x = tf.reshape(x, [-1, 28, 28, 1]) | |
conv1 = conv2d(x, weights['wc1'], biases['bc1']) | |
conv1 = maxpool2d(conv1, k=2) | |
conv2 = conv2d(conv1, weights['wc2'], biases['bc2']) | |
conv2 = maxpool2d(conv2, k=2) | |
fc1 = tf.reshape(conv2, [-1, weights['wd1'].get_shape().as_list()[0]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Because I use this in colab, there some colab commands... sorry about that. | |
!pip install -q tensorflow-gpu==2.0.0-rc1 | |
import tensorflow as tf | |
import tensorflow.keras.backend as K | |
from tensorflow.keras import datasets, layers, models | |
try: | |
# %tensorflow_version only exists in Colab. | |
%tensorflow_version 2.x | |
except Exception: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<style> | |
.parent-just-for-vis{ | |
width:700px; | |
height:300px; | |
background-color:black; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<style> | |
.parent-just-for-vis{ | |
width:700px; | |
height:300px; | |
background-color:black; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<style> | |
.parent-just-for-vis{ | |
width:700px; | |
height:300px; | |
background-color:black; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<style> | |
.parent-just-for-vis{ | |
width:700px; | |
height:300px; | |
background-color:black; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>JavaScript Hieroglyph Programming</title> | |
</head> | |
<body> | |
<div id="helloworld"></div> | |
<script type="text/javascript"> | |
var 𓆎𓅓𓏏𓊖 = "Egypt"; | |
console.log(𓆎𓅓𓏏𓊖); | |
document.getElementById("helloworld").textContent = 𓆎𓅓𓏏𓊖; |