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
{ | |
"title": "Atomic Habits", | |
"author": "James Clear", | |
"year_published": 2018, | |
"genres": ["Self-help", "Psychology", "Business"], | |
"summary": "Atomic Habits offers a proven framework for improving every day. James Clear, one of the world's leading experts on habit formation, reveals practical strategies that will teach you exactly how to form good habits, break bad ones, and master the tiny behaviors that lead to remarkable results.", | |
"publisher": "Avery", | |
"isbn": "978-0735211292", | |
"pages": 320, | |
"language": "English", |
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
import locale | |
# check exist setting | |
print(locale.getpreferredencoding()) | |
def getpreferredencoding(do_setlocale = True): | |
return "UTF-8"file:///D:/Program%20Files/Lepton/resources/app.asar/index.html# | |
locale.getpreferredencoding = getpreferredencoding |
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
import numpy as np | |
from tensorflow import keras | |
from tensorflow.keras import layers | |
# Model / data parameters | |
num_classes = 10 | |
input_shape = (28, 28, 1) | |
# the data, split between train and test sets | |
# (x_train, y_train), (x_test, y_test) = keras.datasets.mnist.load_data() |