MLVisualizationTools 0.7.2__tar.gz → 0.7.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/backend.py +10 -5
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/AnimationDemo.py +1 -1
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/DashDemo.py +1 -1
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/DashKaggleDemo.py +1 -1
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/DashNotebookDemo.py +1 -1
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/DataOverlayDemo.py +1 -1
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/Datasets/Titanic/TitanicDemoPreprocess.py +9 -3
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/Demo.py +1 -1
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/MatplotlibDemo.py +1 -1
- MLVisualizationTools-0.7.4/MLVisualizationTools/examples/Models/titanicmodel.keras +0 -0
- MLVisualizationTools-0.7.4/MLVisualizationTools/examples/Models/titanicmodel_old/fingerprint.pb +1 -0
- MLVisualizationTools-0.7.4/MLVisualizationTools/examples/Models/titanicmodel_old/keras_metadata.pb +7 -0
- MLVisualizationTools-0.7.4/MLVisualizationTools/examples/Models/titanicmodel_old/saved_model.pb +0 -0
- MLVisualizationTools-0.7.4/MLVisualizationTools/examples/Models/titanicmodel_old/variables/variables.data-00000-of-00001 +0 -0
- MLVisualizationTools-0.7.4/MLVisualizationTools/examples/Models/titanicmodel_old/variables/variables.index +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/RemoveFeatureDemo.py +1 -1
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/TrainTitanicModel.py +3 -2
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/modelanalytics.py +1 -1
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools.egg-info/PKG-INFO +15 -2
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools.egg-info/SOURCES.txt +6 -8
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/PKG-INFO +15 -2
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/setup.cfg +2 -1
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/tests/test_basic.py +18 -10
- MLVisualizationTools-0.7.2/MLVisualizationTools/examples/Models/titanicmodel/keras_metadata.pb +0 -7
- MLVisualizationTools-0.7.2/MLVisualizationTools/examples/Models/titanicmodel/saved_model.pb +0 -0
- MLVisualizationTools-0.7.2/MLVisualizationTools/examples/Models/titanicmodel/variables/variables.data-00000-of-00001 +0 -0
- MLVisualizationTools-0.7.2/MLVisualizationTools/examples/Models/titanicmodel/variables/variables.index +0 -0
- MLVisualizationTools-0.7.2/MLVisualizationTools/examples/Models/titanicmodel_v2.0/keras_metadata.pb +0 -7
- MLVisualizationTools-0.7.2/MLVisualizationTools/examples/Models/titanicmodel_v2.0/saved_model.pb +0 -0
- MLVisualizationTools-0.7.2/MLVisualizationTools/examples/Models/titanicmodel_v2.0/variables/variables.data-00000-of-00001 +0 -0
- MLVisualizationTools-0.7.2/MLVisualizationTools/examples/Models/titanicmodel_v2.0/variables/variables.index +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/LICENSE +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MANIFEST.in +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/__init__.py +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/colorizers.py +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/dashbackend.py +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/datainterface.py +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/Datasets/Titanic/train.csv +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/Datasets/Titanic/train_orig.csv +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/SklearnDemo.py +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/express/DashModelVisualizer.py +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/express/__init__.py +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/graphinterface.py +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/modelinterface.py +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/removefeature.py +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/theme_assets/dark_assets/darktheme.css +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/theme_assets/light_assets/lighttheme.css +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/types.py +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools.egg-info/dependency_links.txt +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools.egg-info/requires.txt +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools.egg-info/top_level.txt +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/README.md +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/pyproject.toml +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/setup.py +0 -0
- {MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/tests/testconf.py +0 -0
|
@@ -26,13 +26,18 @@ def colinfo(data: pd.DataFrame, exclude:List[str] = None) -> Tuple[Dict[str, Dic
|
|
|
26
26
|
allcols.append(item)
|
|
27
27
|
return coldata, allcols
|
|
28
28
|
|
|
29
|
+
def model_version_check():
|
|
30
|
+
"""Returns true if old tf version"""
|
|
31
|
+
import tensorflow as tf
|
|
32
|
+
return float('.'.join(tf.version.VERSION.split('.')[0:2])) < 2.16
|
|
33
|
+
|
|
29
34
|
def fileloader(target: str, dynamic_model_version = True):
|
|
30
35
|
"""Specify a path relative to MLVisualizationTools"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
|
|
37
|
+
if dynamic_model_version and 'examples/Models' in target and model_version_check():
|
|
38
|
+
target = target.replace('.keras', '')
|
|
39
|
+
target += "_old"
|
|
40
|
+
print(target)
|
|
36
41
|
return path.dirname(__file__) + '/' + target
|
|
37
42
|
|
|
38
43
|
class ColorMessage:
|
|
@@ -12,7 +12,7 @@ except ImportError:
|
|
|
12
12
|
" `pip install plotly' or run the matplotlib demo instead.")
|
|
13
13
|
|
|
14
14
|
def main(show=True):
|
|
15
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
15
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
16
16
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
17
17
|
|
|
18
18
|
AR = Analytics.analyzeModel(model, df, ["Survived"])
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/DashDemo.py
RENAMED
|
@@ -13,7 +13,7 @@ def main(theme = 'dark', highcontrast = True):
|
|
|
13
13
|
import os
|
|
14
14
|
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # stops agressive error message printing
|
|
15
15
|
from tensorflow import keras
|
|
16
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
16
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
17
17
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
18
18
|
df = df.drop("Survived", axis=1)
|
|
19
19
|
DashModelVisualizer.visualize(model, df, title="DashInteractiveDemo", theme=theme, highcontrast=highcontrast)
|
|
@@ -15,7 +15,7 @@ def main(theme='dark', highcontrast=True, mode='external'):
|
|
|
15
15
|
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # stops agressive error message printing
|
|
16
16
|
from tensorflow import keras
|
|
17
17
|
|
|
18
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
18
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
19
19
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
20
20
|
df = df.drop("Survived", axis=1)
|
|
21
21
|
DashModelVisualizer.visualize(model, df, title="DashKaggleDemo", theme=theme,
|
|
@@ -14,7 +14,7 @@ def main(theme = 'dark', highcontrast = True, mode='external'):
|
|
|
14
14
|
import os
|
|
15
15
|
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # stops agressive error message printing
|
|
16
16
|
from tensorflow import keras
|
|
17
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
17
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
18
18
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
19
19
|
df = df.drop("Survived", axis=1)
|
|
20
20
|
DashModelVisualizer.visualize(model, df, title="DashNotebookDemo", theme=theme,
|
|
@@ -24,7 +24,7 @@ except ImportError:
|
|
|
24
24
|
raise ImportError()
|
|
25
25
|
|
|
26
26
|
def main(show=True):
|
|
27
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
27
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
28
28
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
29
29
|
|
|
30
30
|
AR = Analytics.analyzeModel(model, df, ["Survived"])
|
|
@@ -6,13 +6,19 @@ import pandas as pd
|
|
|
6
6
|
# The modified file was moved to train.csv
|
|
7
7
|
# All operations performed are standard preprocessing
|
|
8
8
|
|
|
9
|
+
# noinspection PyProtectedMember
|
|
10
|
+
try:
|
|
11
|
+
pd.set_option('future.no_silent_downcasting', True) #removes downcasting errors
|
|
12
|
+
except pd._config.config.OptionError:
|
|
13
|
+
pass #This is fine - will throw dep warning on new version without it
|
|
14
|
+
|
|
9
15
|
def main():
|
|
10
16
|
df = pd.read_csv(fileloader('examples/Datasets/Titanic/train_orig.csv'))
|
|
11
17
|
df.drop(['PassengerId', 'Name', 'Ticket', 'Cabin'], axis=1, inplace=True) #these cols don't have much useful data
|
|
12
|
-
df['Age'].fillna(df['Age'].mean()
|
|
18
|
+
df['Age'] = df['Age'].fillna(df['Age'].mean()) #this data has lots of nan values
|
|
13
19
|
df = df[df['Embarked'].notna()] #this col is only missing two values
|
|
14
|
-
df["Embarked"].replace({"C": 0, "S": 1, "Q": 2}
|
|
15
|
-
df['Sex'].replace({"male": 0, "female": 1}
|
|
20
|
+
df["Embarked"] = df["Embarked"].replace({"C": 0, "S": 1, "Q": 2}) #numerical values are better for training
|
|
21
|
+
df['Sex'] = df['Sex'].replace({"male": 0, "female": 1})
|
|
16
22
|
df.to_csv(fileloader('examples/Datasets/Titanic/train.csv'), index=False)
|
|
17
23
|
|
|
18
24
|
if __name__ == '__main__':
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/examples/Demo.py
RENAMED
|
@@ -13,7 +13,7 @@ except ImportError:
|
|
|
13
13
|
|
|
14
14
|
def main(show=True):
|
|
15
15
|
"""Run the demo. Disable show for testing purposes."""
|
|
16
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
16
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
17
17
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
18
18
|
|
|
19
19
|
AR = Analytics.analyzeModel(model, df, ["Survived"])
|
|
@@ -12,7 +12,7 @@ except ImportError:
|
|
|
12
12
|
" with `pip install matplotlib` or run the plotly demo instead.")
|
|
13
13
|
|
|
14
14
|
def main():
|
|
15
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
15
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
16
16
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
17
17
|
|
|
18
18
|
AR = Analytics.analyzeModel(model, df, ["Survived"])
|
|
Binary file
|
MLVisualizationTools-0.7.4/MLVisualizationTools/examples/Models/titanicmodel_old/fingerprint.pb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
����҉����������%Ǖ������d ��֏����3(����2
|
MLVisualizationTools-0.7.4/MLVisualizationTools/examples/Models/titanicmodel_old/keras_metadata.pb
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
�&root"_tf_keras_sequential*�&{"name": "sequential", "trainable": true, "expects_training_arg": true, "dtype": "float32", "batch_input_shape": null, "must_restore_from_config": false, "preserve_input_structure_in_config": false, "autocast": false, "class_name": "Sequential", "config": {"name": "sequential", "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "dtype": "float32", "sparse": false, "ragged": false, "name": "input_1"}}, {"class_name": "Dense", "config": {"name": "dense", "trainable": true, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}, {"class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}, {"class_name": "Dense", "config": {"name": "dense_2", "trainable": true, "dtype": "float32", "units": 1, "activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}]}, "shared_object_id": 10, "input_spec": [{"class_name": "InputSpec", "config": {"dtype": null, "shape": {"class_name": "__tuple__", "items": [null, 7]}, "ndim": 2, "max_ndim": null, "min_ndim": null, "axes": {}}}], "build_input_shape": {"class_name": "TensorShape", "items": [null, 7]}, "is_graph_network": true, "full_save_spec": {"class_name": "__tuple__", "items": [[{"class_name": "TypeSpec", "type_spec": "tf.TensorSpec", "serialized": [{"class_name": "TensorShape", "items": [null, 7]}, "float32", "input_1"]}], {}]}, "save_spec": {"class_name": "TypeSpec", "type_spec": "tf.TensorSpec", "serialized": [{"class_name": "TensorShape", "items": [null, 7]}, "float32", "input_1"]}, "keras_version": "2.13.1", "backend": "tensorflow", "model_config": {"class_name": "Sequential", "config": {"name": "sequential", "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "dtype": "float32", "sparse": false, "ragged": false, "name": "input_1"}, "shared_object_id": 0}, {"class_name": "Dense", "config": {"name": "dense", "trainable": true, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 1}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 2}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 3}, {"class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 4}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 5}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 6}, {"class_name": "Dense", "config": {"name": "dense_2", "trainable": true, "dtype": "float32", "units": 1, "activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 7}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 8}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 9}]}}, "training_config": {"loss": "binary_crossentropy", "metrics": [[{"class_name": "MeanMetricWrapper", "config": {"name": "accuracy", "dtype": "float32", "fn": "binary_accuracy"}, "shared_object_id": 12}]], "weighted_metrics": null, "loss_weights": null, "optimizer_config": {"class_name": "Custom>Adam", "config": {"name": "Adam", "weight_decay": null, "clipnorm": null, "global_clipnorm": null, "clipvalue": null, "use_ema": false, "ema_momentum": 0.99, "ema_overwrite_frequency": null, "jit_compile": false, "is_legacy_optimizer": false, "learning_rate": 0.0010000000474974513, "beta_1": 0.9, "beta_2": 0.999, "epsilon": 1e-07, "amsgrad": false}}}}2
|
|
3
|
+
�root.layer_with_weights-0"_tf_keras_layer*�{"name": "dense", "trainable": true, "expects_training_arg": false, "dtype": "float32", "batch_input_shape": null, "stateful": false, "must_restore_from_config": false, "preserve_input_structure_in_config": false, "autocast": true, "class_name": "Dense", "config": {"name": "dense", "trainable": true, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 1}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 2}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 3, "input_spec": {"class_name": "InputSpec", "config": {"dtype": null, "shape": null, "ndim": null, "max_ndim": null, "min_ndim": 2, "axes": {"-1": 7}}, "shared_object_id": 13}, "build_input_shape": {"class_name": "TensorShape", "items": [null, 7]}}2
|
|
4
|
+
�root.layer_with_weights-1"_tf_keras_layer*�{"name": "dense_1", "trainable": true, "expects_training_arg": false, "dtype": "float32", "batch_input_shape": null, "stateful": false, "must_restore_from_config": false, "preserve_input_structure_in_config": false, "autocast": true, "class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 4}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 5}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 6, "input_spec": {"class_name": "InputSpec", "config": {"dtype": null, "shape": null, "ndim": null, "max_ndim": null, "min_ndim": 2, "axes": {"-1": 10}}, "shared_object_id": 14}, "build_input_shape": {"class_name": "TensorShape", "items": [null, 10]}}2
|
|
5
|
+
�root.layer_with_weights-2"_tf_keras_layer*�{"name": "dense_2", "trainable": true, "expects_training_arg": false, "dtype": "float32", "batch_input_shape": null, "stateful": false, "must_restore_from_config": false, "preserve_input_structure_in_config": false, "autocast": true, "class_name": "Dense", "config": {"name": "dense_2", "trainable": true, "dtype": "float32", "units": 1, "activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 7}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 8}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 9, "input_spec": {"class_name": "InputSpec", "config": {"dtype": null, "shape": null, "ndim": null, "max_ndim": null, "min_ndim": 2, "axes": {"-1": 10}}, "shared_object_id": 15}, "build_input_shape": {"class_name": "TensorShape", "items": [null, 10]}}2
|
|
6
|
+
�Kroot.keras_api.metrics.0"_tf_keras_metric*�{"class_name": "Mean", "name": "loss", "dtype": "float32", "config": {"name": "loss", "dtype": "float32"}, "shared_object_id": 16}2
|
|
7
|
+
�Lroot.keras_api.metrics.1"_tf_keras_metric*�{"class_name": "MeanMetricWrapper", "name": "accuracy", "dtype": "float32", "config": {"name": "accuracy", "dtype": "float32", "fn": "binary_accuracy"}, "shared_object_id": 12}2
|
MLVisualizationTools-0.7.4/MLVisualizationTools/examples/Models/titanicmodel_old/saved_model.pb
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -7,7 +7,7 @@ from tensorflow import keras
|
|
|
7
7
|
|
|
8
8
|
def main(verbose=True):
|
|
9
9
|
"""Run the demo. Disable show for testing purposes."""
|
|
10
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
10
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
11
11
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
12
12
|
|
|
13
13
|
header = list(df.columns)
|
|
@@ -12,7 +12,8 @@ from MLVisualizationTools.backend import fileloader
|
|
|
12
12
|
|
|
13
13
|
def getModel():
|
|
14
14
|
model = keras.Sequential()
|
|
15
|
-
model.add(keras.layers.
|
|
15
|
+
model.add(keras.layers.Input((7,)))
|
|
16
|
+
model.add(keras.layers.Dense(10, activation='relu'))
|
|
16
17
|
model.add(keras.layers.Dense(10, activation='relu'))
|
|
17
18
|
model.add(keras.layers.Dense(1, activation='sigmoid'))
|
|
18
19
|
model.compile(loss="binary_crossentropy", optimizer="adam", metrics=["accuracy"])
|
|
@@ -47,7 +48,7 @@ def main():
|
|
|
47
48
|
print("We achieved an (training) accuracy of:", str(round(trainaccuracy,3) * 100) + "%")
|
|
48
49
|
print("We achieved an (testing) accuracy of:", str(round(testaccuracy,3) * 100) + "%")
|
|
49
50
|
print()
|
|
50
|
-
model.save(fileloader('examples/Models/titanicmodel_new'))
|
|
51
|
+
model.save(fileloader('examples/Models/titanicmodel_new.keras'))
|
|
51
52
|
print("Model saved to Models/titanicmodel_new")
|
|
52
53
|
|
|
53
54
|
if __name__ == '__main__':
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/modelanalytics.py
RENAMED
|
@@ -80,7 +80,7 @@ def analyzeModelRaw(model, coldata: Dict[str, Dict], allcols: List[str], steps:i
|
|
|
80
80
|
currentpos = 0
|
|
81
81
|
for name, item in coldata.items():
|
|
82
82
|
for i in range(0, steps):
|
|
83
|
-
preddata[
|
|
83
|
+
preddata.loc[i + currentpos, name] = i * (item['max'] - item['min'])/(steps-1) + item['min']
|
|
84
84
|
currentpos += steps
|
|
85
85
|
|
|
86
86
|
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: MLVisualizationTools
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.4
|
|
4
4
|
Summary: A set of functions and demos to make machine learning projects easier to understand through effective visualizations.
|
|
5
5
|
Home-page: https://github.com/RobertJN64/MLVisualizationTools
|
|
6
6
|
Author: Robert Nies
|
|
@@ -13,13 +13,26 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
17
|
Requires-Python: >=3.8
|
|
17
18
|
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
Requires-Dist: pandas
|
|
18
21
|
Provides-Extra: dash
|
|
22
|
+
Requires-Dist: dash; extra == "dash"
|
|
23
|
+
Requires-Dist: flask; extra == "dash"
|
|
24
|
+
Requires-Dist: plotly; extra == "dash"
|
|
25
|
+
Requires-Dist: dash-bootstrap-components>=1.0.0; extra == "dash"
|
|
26
|
+
Requires-Dist: dash-tour-component; extra == "dash"
|
|
19
27
|
Provides-Extra: dash-notebook
|
|
28
|
+
Requires-Dist: MLVisualizationTools[dash]; extra == "dash-notebook"
|
|
29
|
+
Requires-Dist: jupyter-dash; extra == "dash-notebook"
|
|
20
30
|
Provides-Extra: ngrok-tunneling
|
|
31
|
+
Requires-Dist: MLVisualizationTools[dash-notebook]; extra == "ngrok-tunneling"
|
|
32
|
+
Requires-Dist: pyngrok; extra == "ngrok-tunneling"
|
|
21
33
|
Provides-Extra: dev
|
|
22
|
-
|
|
34
|
+
Requires-Dist: MLVisualizationTools[dash]; extra == "dev"
|
|
35
|
+
Requires-Dist: pytest; extra == "dev"
|
|
23
36
|
|
|
24
37
|
# MLVisualizationTools
|
|
25
38
|
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools.egg-info/SOURCES.txt
RENAMED
|
@@ -32,14 +32,12 @@ MLVisualizationTools/examples/TrainTitanicModel.py
|
|
|
32
32
|
MLVisualizationTools/examples/Datasets/Titanic/TitanicDemoPreprocess.py
|
|
33
33
|
MLVisualizationTools/examples/Datasets/Titanic/train.csv
|
|
34
34
|
MLVisualizationTools/examples/Datasets/Titanic/train_orig.csv
|
|
35
|
-
MLVisualizationTools/examples/Models/titanicmodel
|
|
36
|
-
MLVisualizationTools/examples/Models/
|
|
37
|
-
MLVisualizationTools/examples/Models/
|
|
38
|
-
MLVisualizationTools/examples/Models/
|
|
39
|
-
MLVisualizationTools/examples/Models/
|
|
40
|
-
MLVisualizationTools/examples/Models/
|
|
41
|
-
MLVisualizationTools/examples/Models/titanicmodel_v2.0/variables/variables.data-00000-of-00001
|
|
42
|
-
MLVisualizationTools/examples/Models/titanicmodel_v2.0/variables/variables.index
|
|
35
|
+
MLVisualizationTools/examples/Models/titanicmodel.keras
|
|
36
|
+
MLVisualizationTools/examples/Models/titanicmodel_old/fingerprint.pb
|
|
37
|
+
MLVisualizationTools/examples/Models/titanicmodel_old/keras_metadata.pb
|
|
38
|
+
MLVisualizationTools/examples/Models/titanicmodel_old/saved_model.pb
|
|
39
|
+
MLVisualizationTools/examples/Models/titanicmodel_old/variables/variables.data-00000-of-00001
|
|
40
|
+
MLVisualizationTools/examples/Models/titanicmodel_old/variables/variables.index
|
|
43
41
|
MLVisualizationTools/express/DashModelVisualizer.py
|
|
44
42
|
MLVisualizationTools/express/__init__.py
|
|
45
43
|
MLVisualizationTools/theme_assets/dark_assets/darktheme.css
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: MLVisualizationTools
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.4
|
|
4
4
|
Summary: A set of functions and demos to make machine learning projects easier to understand through effective visualizations.
|
|
5
5
|
Home-page: https://github.com/RobertJN64/MLVisualizationTools
|
|
6
6
|
Author: Robert Nies
|
|
@@ -13,13 +13,26 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
17
|
Requires-Python: >=3.8
|
|
17
18
|
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
Requires-Dist: pandas
|
|
18
21
|
Provides-Extra: dash
|
|
22
|
+
Requires-Dist: dash; extra == "dash"
|
|
23
|
+
Requires-Dist: flask; extra == "dash"
|
|
24
|
+
Requires-Dist: plotly; extra == "dash"
|
|
25
|
+
Requires-Dist: dash-bootstrap-components>=1.0.0; extra == "dash"
|
|
26
|
+
Requires-Dist: dash-tour-component; extra == "dash"
|
|
19
27
|
Provides-Extra: dash-notebook
|
|
28
|
+
Requires-Dist: MLVisualizationTools[dash]; extra == "dash-notebook"
|
|
29
|
+
Requires-Dist: jupyter-dash; extra == "dash-notebook"
|
|
20
30
|
Provides-Extra: ngrok-tunneling
|
|
31
|
+
Requires-Dist: MLVisualizationTools[dash-notebook]; extra == "ngrok-tunneling"
|
|
32
|
+
Requires-Dist: pyngrok; extra == "ngrok-tunneling"
|
|
21
33
|
Provides-Extra: dev
|
|
22
|
-
|
|
34
|
+
Requires-Dist: MLVisualizationTools[dash]; extra == "dev"
|
|
35
|
+
Requires-Dist: pytest; extra == "dev"
|
|
23
36
|
|
|
24
37
|
# MLVisualizationTools
|
|
25
38
|
|
|
@@ -6,7 +6,7 @@ license = MIT
|
|
|
6
6
|
license_file = LICENSE
|
|
7
7
|
url = https://github.com/RobertJN64/MLVisualizationTools
|
|
8
8
|
author_email = robertjnies@gmail.com
|
|
9
|
-
version = 0.7.
|
|
9
|
+
version = 0.7.4
|
|
10
10
|
long_description = file: README.md
|
|
11
11
|
long_description_content_type = text/markdown
|
|
12
12
|
classifiers =
|
|
@@ -17,6 +17,7 @@ classifiers =
|
|
|
17
17
|
Programming Language :: Python :: 3.9
|
|
18
18
|
Programming Language :: Python :: 3.10
|
|
19
19
|
Programming Language :: Python :: 3.11
|
|
20
|
+
Programming Language :: Python :: 3.12
|
|
20
21
|
|
|
21
22
|
[options]
|
|
22
23
|
packages = MLVisualizationTools
|
|
@@ -25,7 +25,7 @@ def test_colorizer():
|
|
|
25
25
|
|
|
26
26
|
def test_dash_visualizer(): #doesn't launch dash apps, but tests creation process
|
|
27
27
|
import MLVisualizationTools.express.DashModelVisualizer as DMV
|
|
28
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
28
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
29
29
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
30
30
|
df = df.drop("Survived", axis=1)
|
|
31
31
|
DMV.App(model, df, theme='light')
|
|
@@ -55,6 +55,14 @@ def test_mpl():
|
|
|
55
55
|
message= r'Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.'
|
|
56
56
|
# disables agg warning on matplotlib
|
|
57
57
|
)
|
|
58
|
+
|
|
59
|
+
warnings.filterwarnings(
|
|
60
|
+
action='ignore',
|
|
61
|
+
category=UserWarning,
|
|
62
|
+
message=r'FigureCanvasAgg is non-interactive, and thus cannot be shown'
|
|
63
|
+
# disables agg warning on matplotlib
|
|
64
|
+
)
|
|
65
|
+
|
|
58
66
|
import MLVisualizationTools.examples.MatplotlibDemo as MPLDemo
|
|
59
67
|
MPLDemo.main()
|
|
60
68
|
|
|
@@ -64,8 +72,8 @@ def test_process_data_train_and_run_model():
|
|
|
64
72
|
import MLVisualizationTools.examples.TrainTitanicModel as TTM
|
|
65
73
|
TTM.main()
|
|
66
74
|
|
|
67
|
-
model = keras.models.load_model('
|
|
68
|
-
df = pd.read_csv('
|
|
75
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
76
|
+
df = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
69
77
|
|
|
70
78
|
# region preprocess
|
|
71
79
|
header = list(df.columns)
|
|
@@ -78,7 +86,7 @@ def test_process_data_train_and_run_model():
|
|
|
78
86
|
# assert accuracy >= 0.70 #had to disable this because we kept failing...
|
|
79
87
|
|
|
80
88
|
def test_colorizer_edge_cases():
|
|
81
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
89
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
82
90
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
83
91
|
|
|
84
92
|
AR = project.Analytics.analyzeModel(model, df, ["Survived"])
|
|
@@ -104,7 +112,7 @@ def test_colorizer_edge_cases():
|
|
|
104
112
|
def test_wrong_data_format_exception():
|
|
105
113
|
from MLVisualizationTools.graphinterface import WrongDataFormatException
|
|
106
114
|
|
|
107
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
115
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
108
116
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
109
117
|
|
|
110
118
|
AR = project.Analytics.analyzeModel(model, df, ["Survived"])
|
|
@@ -124,7 +132,7 @@ def test_wrong_data_format_exception():
|
|
|
124
132
|
_ = project.Graphs.matplotlibGrid(grid)
|
|
125
133
|
|
|
126
134
|
def test_OutputKey_warning():
|
|
127
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
135
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
128
136
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
129
137
|
|
|
130
138
|
cols = list(df.columns)
|
|
@@ -137,7 +145,7 @@ def test_OutputKey_warning():
|
|
|
137
145
|
project.Interfaces.predictionAnimation(model, cols[1], cols[2], cols[3], df, ["Survived"])
|
|
138
146
|
|
|
139
147
|
def test_graph_branch_error():
|
|
140
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
148
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
141
149
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
142
150
|
|
|
143
151
|
AR = project.Analytics.analyzeModel(model, df, ["Survived"])
|
|
@@ -166,7 +174,7 @@ def test_graph_branch_error():
|
|
|
166
174
|
project.backend.ColorizerableDataFrame(pd.DataFrame(), mode = 'Not A Mode')
|
|
167
175
|
|
|
168
176
|
def test_data_interface_errors():
|
|
169
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
177
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
170
178
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
171
179
|
|
|
172
180
|
AR = project.Analytics.analyzeModel(model, df, ["Survived"])
|
|
@@ -180,7 +188,7 @@ def test_data_interface_errors():
|
|
|
180
188
|
project.datainterface.addPercentageData(grid, df)
|
|
181
189
|
|
|
182
190
|
def test_custom_sizekeys():
|
|
183
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
191
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
184
192
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
185
193
|
|
|
186
194
|
AR = project.Analytics.analyzeModel(model, df, ["Survived"])
|
|
@@ -195,7 +203,7 @@ def test_custom_sizekeys():
|
|
|
195
203
|
|
|
196
204
|
|
|
197
205
|
def test_unusual_dataoverlay():
|
|
198
|
-
model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
|
|
206
|
+
model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
|
|
199
207
|
df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
|
|
200
208
|
|
|
201
209
|
AR = project.Analytics.analyzeModel(model, df, ["Survived"])
|
MLVisualizationTools-0.7.2/MLVisualizationTools/examples/Models/titanicmodel/keras_metadata.pb
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
�$root"_tf_keras_sequential*�#{"name": "sequential", "trainable": true, "expects_training_arg": true, "dtype": "float32", "batch_input_shape": null, "must_restore_from_config": false, "class_name": "Sequential", "config": {"name": "sequential", "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "dtype": "float32", "sparse": false, "ragged": false, "name": "dense_input"}}, {"class_name": "Dense", "config": {"name": "dense", "trainable": true, "batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}, {"class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}, {"class_name": "Dense", "config": {"name": "dense_2", "trainable": true, "dtype": "float32", "units": 1, "activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}]}, "shared_object_id": 10, "input_spec": {"class_name": "InputSpec", "config": {"dtype": null, "shape": null, "ndim": null, "max_ndim": null, "min_ndim": 2, "axes": {"-1": 7}}, "shared_object_id": 11}, "build_input_shape": {"class_name": "TensorShape", "items": [null, 7]}, "is_graph_network": true, "save_spec": {"class_name": "TypeSpec", "type_spec": "tf.TensorSpec", "serialized": [{"class_name": "TensorShape", "items": [null, 7]}, "float32", "dense_input"]}, "keras_version": "2.5.0", "backend": "tensorflow", "model_config": {"class_name": "Sequential", "config": {"name": "sequential", "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "dtype": "float32", "sparse": false, "ragged": false, "name": "dense_input"}, "shared_object_id": 0}, {"class_name": "Dense", "config": {"name": "dense", "trainable": true, "batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 1}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 2}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 3}, {"class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 4}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 5}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 6}, {"class_name": "Dense", "config": {"name": "dense_2", "trainable": true, "dtype": "float32", "units": 1, "activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 7}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 8}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 9}]}}, "training_config": {"loss": "binary_crossentropy", "metrics": [[{"class_name": "MeanMetricWrapper", "config": {"name": "accuracy", "dtype": "float32", "fn": "binary_accuracy"}, "shared_object_id": 12}]], "weighted_metrics": null, "loss_weights": null, "optimizer_config": {"class_name": "Adam", "config": {"name": "Adam", "learning_rate": 0.0010000000474974513, "decay": 0.0, "beta_1": 0.8999999761581421, "beta_2": 0.9990000128746033, "epsilon": 1e-07, "amsgrad": false}}}}2
|
|
3
|
-
�root.layer_with_weights-0"_tf_keras_layer*�{"name": "dense", "trainable": true, "expects_training_arg": false, "dtype": "float32", "batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "stateful": false, "must_restore_from_config": false, "class_name": "Dense", "config": {"name": "dense", "trainable": true, "batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 1}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 2}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 3, "input_spec": {"class_name": "InputSpec", "config": {"dtype": null, "shape": null, "ndim": null, "max_ndim": null, "min_ndim": 2, "axes": {"-1": 7}}, "shared_object_id": 11}, "build_input_shape": {"class_name": "TensorShape", "items": [null, 7]}}2
|
|
4
|
-
�root.layer_with_weights-1"_tf_keras_layer*�{"name": "dense_1", "trainable": true, "expects_training_arg": false, "dtype": "float32", "batch_input_shape": null, "stateful": false, "must_restore_from_config": false, "class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 4}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 5}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 6, "input_spec": {"class_name": "InputSpec", "config": {"dtype": null, "shape": null, "ndim": null, "max_ndim": null, "min_ndim": 2, "axes": {"-1": 10}}, "shared_object_id": 13}, "build_input_shape": {"class_name": "TensorShape", "items": [null, 10]}}2
|
|
5
|
-
�root.layer_with_weights-2"_tf_keras_layer*�{"name": "dense_2", "trainable": true, "expects_training_arg": false, "dtype": "float32", "batch_input_shape": null, "stateful": false, "must_restore_from_config": false, "class_name": "Dense", "config": {"name": "dense_2", "trainable": true, "dtype": "float32", "units": 1, "activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 7}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 8}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 9, "input_spec": {"class_name": "InputSpec", "config": {"dtype": null, "shape": null, "ndim": null, "max_ndim": null, "min_ndim": 2, "axes": {"-1": 10}}, "shared_object_id": 14}, "build_input_shape": {"class_name": "TensorShape", "items": [null, 10]}}2
|
|
6
|
-
�5root.keras_api.metrics.0"_tf_keras_metric*�{"class_name": "Mean", "name": "loss", "dtype": "float32", "config": {"name": "loss", "dtype": "float32"}, "shared_object_id": 15}2
|
|
7
|
-
�6root.keras_api.metrics.1"_tf_keras_metric*�{"class_name": "MeanMetricWrapper", "name": "accuracy", "dtype": "float32", "config": {"name": "accuracy", "dtype": "float32", "fn": "binary_accuracy"}, "shared_object_id": 12}2
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
MLVisualizationTools-0.7.2/MLVisualizationTools/examples/Models/titanicmodel_v2.0/keras_metadata.pb
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
�&root"_tf_keras_sequential*�&{"name": "sequential", "trainable": true, "expects_training_arg": true, "dtype": "float32", "batch_input_shape": null, "must_restore_from_config": false, "preserve_input_structure_in_config": false, "autocast": false, "class_name": "Sequential", "config": {"name": "sequential", "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "dtype": "float32", "sparse": false, "ragged": false, "name": "dense_input"}}, {"class_name": "Dense", "config": {"name": "dense", "trainable": true, "batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}, {"class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}, {"class_name": "Dense", "config": {"name": "dense_2", "trainable": true, "dtype": "float32", "units": 1, "activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}]}, "shared_object_id": 10, "input_spec": [{"class_name": "InputSpec", "config": {"dtype": null, "shape": {"class_name": "__tuple__", "items": [null, 7]}, "ndim": 2, "max_ndim": null, "min_ndim": null, "axes": {}}}], "build_input_shape": {"class_name": "TensorShape", "items": [null, 7]}, "is_graph_network": true, "full_save_spec": {"class_name": "__tuple__", "items": [[{"class_name": "TypeSpec", "type_spec": "tf.TensorSpec", "serialized": [{"class_name": "TensorShape", "items": [null, 7]}, "float32", "dense_input"]}], {}]}, "save_spec": {"class_name": "TypeSpec", "type_spec": "tf.TensorSpec", "serialized": [{"class_name": "TensorShape", "items": [null, 7]}, "float32", "dense_input"]}, "keras_version": "2.10.0", "backend": "tensorflow", "model_config": {"class_name": "Sequential", "config": {"name": "sequential", "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "dtype": "float32", "sparse": false, "ragged": false, "name": "dense_input"}, "shared_object_id": 0}, {"class_name": "Dense", "config": {"name": "dense", "trainable": true, "batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 1}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 2}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 3}, {"class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 4}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 5}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 6}, {"class_name": "Dense", "config": {"name": "dense_2", "trainable": true, "dtype": "float32", "units": 1, "activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 7}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 8}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 9}]}}, "training_config": {"loss": "binary_crossentropy", "metrics": [[{"class_name": "MeanMetricWrapper", "config": {"name": "accuracy", "dtype": "float32", "fn": "binary_accuracy"}, "shared_object_id": 12}]], "weighted_metrics": null, "loss_weights": null, "optimizer_config": {"class_name": "Adam", "config": {"name": "Adam", "learning_rate": 0.0010000000474974513, "decay": 0.0, "beta_1": 0.8999999761581421, "beta_2": 0.9990000128746033, "epsilon": 1e-07, "amsgrad": false}}}}2
|
|
3
|
-
�root.layer_with_weights-0"_tf_keras_layer*�{"name": "dense", "trainable": true, "expects_training_arg": false, "dtype": "float32", "batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "stateful": false, "must_restore_from_config": false, "preserve_input_structure_in_config": false, "autocast": true, "class_name": "Dense", "config": {"name": "dense", "trainable": true, "batch_input_shape": {"class_name": "__tuple__", "items": [null, 7]}, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 1}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 2}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 3, "input_spec": {"class_name": "InputSpec", "config": {"dtype": null, "shape": null, "ndim": null, "max_ndim": null, "min_ndim": 2, "axes": {"-1": 7}}, "shared_object_id": 13}, "build_input_shape": {"class_name": "TensorShape", "items": [null, 7]}}2
|
|
4
|
-
�root.layer_with_weights-1"_tf_keras_layer*�{"name": "dense_1", "trainable": true, "expects_training_arg": false, "dtype": "float32", "batch_input_shape": null, "stateful": false, "must_restore_from_config": false, "preserve_input_structure_in_config": false, "autocast": true, "class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "dtype": "float32", "units": 10, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 4}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 5}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 6, "input_spec": {"class_name": "InputSpec", "config": {"dtype": null, "shape": null, "ndim": null, "max_ndim": null, "min_ndim": 2, "axes": {"-1": 10}}, "shared_object_id": 14}, "build_input_shape": {"class_name": "TensorShape", "items": [null, 10]}}2
|
|
5
|
-
�root.layer_with_weights-2"_tf_keras_layer*�{"name": "dense_2", "trainable": true, "expects_training_arg": false, "dtype": "float32", "batch_input_shape": null, "stateful": false, "must_restore_from_config": false, "preserve_input_structure_in_config": false, "autocast": true, "class_name": "Dense", "config": {"name": "dense_2", "trainable": true, "dtype": "float32", "units": 1, "activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}, "shared_object_id": 7}, "bias_initializer": {"class_name": "Zeros", "config": {}, "shared_object_id": 8}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}, "shared_object_id": 9, "input_spec": {"class_name": "InputSpec", "config": {"dtype": null, "shape": null, "ndim": null, "max_ndim": null, "min_ndim": 2, "axes": {"-1": 10}}, "shared_object_id": 15}, "build_input_shape": {"class_name": "TensorShape", "items": [null, 10]}}2
|
|
6
|
-
�Mroot.keras_api.metrics.0"_tf_keras_metric*�{"class_name": "Mean", "name": "loss", "dtype": "float32", "config": {"name": "loss", "dtype": "float32"}, "shared_object_id": 16}2
|
|
7
|
-
�Nroot.keras_api.metrics.1"_tf_keras_metric*�{"class_name": "MeanMetricWrapper", "name": "accuracy", "dtype": "float32", "config": {"name": "accuracy", "dtype": "float32", "fn": "binary_accuracy"}, "shared_object_id": 12}2
|
MLVisualizationTools-0.7.2/MLVisualizationTools/examples/Models/titanicmodel_v2.0/saved_model.pb
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/colorizers.py
RENAMED
|
File without changes
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/dashbackend.py
RENAMED
|
File without changes
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/datainterface.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/express/__init__.py
RENAMED
|
File without changes
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/graphinterface.py
RENAMED
|
File without changes
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/modelinterface.py
RENAMED
|
File without changes
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools/removefeature.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{MLVisualizationTools-0.7.2 → MLVisualizationTools-0.7.4}/MLVisualizationTools.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|