MLVisualizationTools 0.7.3__tar.gz → 0.7.5__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.
Files changed (55) hide show
  1. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/backend.py +10 -5
  2. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/AnimationDemo.py +1 -1
  3. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/DashDemo.py +1 -1
  4. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/DashKaggleDemo.py +1 -1
  5. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/DashNotebookDemo.py +1 -1
  6. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/DataOverlayDemo.py +1 -1
  7. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/Demo.py +1 -1
  8. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/MatplotlibDemo.py +1 -1
  9. mlvisualizationtools-0.7.5/MLVisualizationTools/examples/Models/titanicmodel.keras +0 -0
  10. mlvisualizationtools-0.7.5/MLVisualizationTools/examples/Models/titanicmodel_old/fingerprint.pb +1 -0
  11. mlvisualizationtools-0.7.5/MLVisualizationTools/examples/Models/titanicmodel_old/keras_metadata.pb +7 -0
  12. mlvisualizationtools-0.7.5/MLVisualizationTools/examples/Models/titanicmodel_old/saved_model.pb +0 -0
  13. mlvisualizationtools-0.7.5/MLVisualizationTools/examples/Models/titanicmodel_old/variables/variables.data-00000-of-00001 +0 -0
  14. mlvisualizationtools-0.7.5/MLVisualizationTools/examples/Models/titanicmodel_old/variables/variables.index +0 -0
  15. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/RemoveFeatureDemo.py +1 -1
  16. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/TrainTitanicModel.py +3 -2
  17. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools.egg-info/PKG-INFO +4 -3
  18. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools.egg-info/SOURCES.txt +6 -8
  19. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools.egg-info/requires.txt +0 -1
  20. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/PKG-INFO +4 -3
  21. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/setup.cfg +2 -2
  22. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/tests/test_basic.py +10 -10
  23. MLVisualizationTools-0.7.3/MLVisualizationTools/examples/Models/titanicmodel/keras_metadata.pb +0 -7
  24. MLVisualizationTools-0.7.3/MLVisualizationTools/examples/Models/titanicmodel/saved_model.pb +0 -0
  25. MLVisualizationTools-0.7.3/MLVisualizationTools/examples/Models/titanicmodel/variables/variables.data-00000-of-00001 +0 -0
  26. MLVisualizationTools-0.7.3/MLVisualizationTools/examples/Models/titanicmodel/variables/variables.index +0 -0
  27. MLVisualizationTools-0.7.3/MLVisualizationTools/examples/Models/titanicmodel_v2.0/keras_metadata.pb +0 -7
  28. MLVisualizationTools-0.7.3/MLVisualizationTools/examples/Models/titanicmodel_v2.0/saved_model.pb +0 -0
  29. MLVisualizationTools-0.7.3/MLVisualizationTools/examples/Models/titanicmodel_v2.0/variables/variables.data-00000-of-00001 +0 -0
  30. MLVisualizationTools-0.7.3/MLVisualizationTools/examples/Models/titanicmodel_v2.0/variables/variables.index +0 -0
  31. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/LICENSE +0 -0
  32. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MANIFEST.in +0 -0
  33. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/__init__.py +0 -0
  34. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/colorizers.py +0 -0
  35. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/dashbackend.py +0 -0
  36. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/datainterface.py +0 -0
  37. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/Datasets/Titanic/TitanicDemoPreprocess.py +0 -0
  38. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/Datasets/Titanic/train.csv +0 -0
  39. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/Datasets/Titanic/train_orig.csv +0 -0
  40. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/examples/SklearnDemo.py +0 -0
  41. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/express/DashModelVisualizer.py +0 -0
  42. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/express/__init__.py +0 -0
  43. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/graphinterface.py +0 -0
  44. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/modelanalytics.py +0 -0
  45. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/modelinterface.py +0 -0
  46. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/removefeature.py +0 -0
  47. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/theme_assets/dark_assets/darktheme.css +0 -0
  48. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/theme_assets/light_assets/lighttheme.css +0 -0
  49. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools/types.py +0 -0
  50. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools.egg-info/dependency_links.txt +0 -0
  51. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/MLVisualizationTools.egg-info/top_level.txt +0 -0
  52. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/README.md +0 -0
  53. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/pyproject.toml +0 -0
  54. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/setup.py +0 -0
  55. {MLVisualizationTools-0.7.3 → mlvisualizationtools-0.7.5}/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
- if dynamic_model_version:
32
- if 'examples/Models' in target:
33
- import tensorflow as tf
34
- if float(tf.version.VERSION[:3]) < 2.5:
35
- target += "_v2.0"
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"])
@@ -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"])
@@ -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"])
@@ -0,0 +1 @@
1
+ ����҉����������%Ǖ������d ��֏����3(����2
@@ -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
@@ -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.Dense(10, input_dim=7, activation='relu'))
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__':
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: MLVisualizationTools
3
- Version: 0.7.3
3
+ Version: 0.7.5
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,13 @@ 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
18
19
  License-File: LICENSE
19
20
  Requires-Dist: pandas
20
21
  Provides-Extra: dash
21
22
  Requires-Dist: dash; extra == "dash"
22
- Requires-Dist: flask; extra == "dash"
23
23
  Requires-Dist: plotly; extra == "dash"
24
24
  Requires-Dist: dash-bootstrap-components>=1.0.0; extra == "dash"
25
25
  Requires-Dist: dash-tour-component; extra == "dash"
@@ -32,6 +32,7 @@ Requires-Dist: pyngrok; extra == "ngrok-tunneling"
32
32
  Provides-Extra: dev
33
33
  Requires-Dist: MLVisualizationTools[dash]; extra == "dev"
34
34
  Requires-Dist: pytest; extra == "dev"
35
+ Dynamic: license-file
35
36
 
36
37
  # MLVisualizationTools
37
38
 
@@ -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/keras_metadata.pb
36
- MLVisualizationTools/examples/Models/titanicmodel/saved_model.pb
37
- MLVisualizationTools/examples/Models/titanicmodel/variables/variables.data-00000-of-00001
38
- MLVisualizationTools/examples/Models/titanicmodel/variables/variables.index
39
- MLVisualizationTools/examples/Models/titanicmodel_v2.0/keras_metadata.pb
40
- MLVisualizationTools/examples/Models/titanicmodel_v2.0/saved_model.pb
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
@@ -2,7 +2,6 @@ pandas
2
2
 
3
3
  [dash]
4
4
  dash
5
- flask
6
5
  plotly
7
6
  dash-bootstrap-components>=1.0.0
8
7
  dash-tour-component
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: MLVisualizationTools
3
- Version: 0.7.3
3
+ Version: 0.7.5
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,13 @@ 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
18
19
  License-File: LICENSE
19
20
  Requires-Dist: pandas
20
21
  Provides-Extra: dash
21
22
  Requires-Dist: dash; extra == "dash"
22
- Requires-Dist: flask; extra == "dash"
23
23
  Requires-Dist: plotly; extra == "dash"
24
24
  Requires-Dist: dash-bootstrap-components>=1.0.0; extra == "dash"
25
25
  Requires-Dist: dash-tour-component; extra == "dash"
@@ -32,6 +32,7 @@ Requires-Dist: pyngrok; extra == "ngrok-tunneling"
32
32
  Provides-Extra: dev
33
33
  Requires-Dist: MLVisualizationTools[dash]; extra == "dev"
34
34
  Requires-Dist: pytest; extra == "dev"
35
+ Dynamic: license-file
35
36
 
36
37
  # MLVisualizationTools
37
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.3
9
+ version = 0.7.5
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
@@ -28,7 +29,6 @@ install_requires =
28
29
  [options.extras_require]
29
30
  dash =
30
31
  dash
31
- flask
32
32
  plotly
33
33
  dash-bootstrap-components>=1.0.0
34
34
  dash-tour-component
@@ -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')
@@ -72,8 +72,8 @@ def test_process_data_train_and_run_model():
72
72
  import MLVisualizationTools.examples.TrainTitanicModel as TTM
73
73
  TTM.main()
74
74
 
75
- model = keras.models.load_model('MLVisualizationTools/examples/Models/titanicmodel')
76
- df = pd.read_csv('MLVisualizationTools/examples/Datasets/Titanic/train.csv')
75
+ model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
76
+ df = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
77
77
 
78
78
  # region preprocess
79
79
  header = list(df.columns)
@@ -86,7 +86,7 @@ def test_process_data_train_and_run_model():
86
86
  # assert accuracy >= 0.70 #had to disable this because we kept failing...
87
87
 
88
88
  def test_colorizer_edge_cases():
89
- model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
89
+ model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
90
90
  df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
91
91
 
92
92
  AR = project.Analytics.analyzeModel(model, df, ["Survived"])
@@ -112,7 +112,7 @@ def test_colorizer_edge_cases():
112
112
  def test_wrong_data_format_exception():
113
113
  from MLVisualizationTools.graphinterface import WrongDataFormatException
114
114
 
115
- model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
115
+ model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
116
116
  df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
117
117
 
118
118
  AR = project.Analytics.analyzeModel(model, df, ["Survived"])
@@ -132,7 +132,7 @@ def test_wrong_data_format_exception():
132
132
  _ = project.Graphs.matplotlibGrid(grid)
133
133
 
134
134
  def test_OutputKey_warning():
135
- model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
135
+ model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
136
136
  df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
137
137
 
138
138
  cols = list(df.columns)
@@ -145,7 +145,7 @@ def test_OutputKey_warning():
145
145
  project.Interfaces.predictionAnimation(model, cols[1], cols[2], cols[3], df, ["Survived"])
146
146
 
147
147
  def test_graph_branch_error():
148
- model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
148
+ model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
149
149
  df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
150
150
 
151
151
  AR = project.Analytics.analyzeModel(model, df, ["Survived"])
@@ -174,7 +174,7 @@ def test_graph_branch_error():
174
174
  project.backend.ColorizerableDataFrame(pd.DataFrame(), mode = 'Not A Mode')
175
175
 
176
176
  def test_data_interface_errors():
177
- model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
177
+ model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
178
178
  df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
179
179
 
180
180
  AR = project.Analytics.analyzeModel(model, df, ["Survived"])
@@ -188,7 +188,7 @@ def test_data_interface_errors():
188
188
  project.datainterface.addPercentageData(grid, df)
189
189
 
190
190
  def test_custom_sizekeys():
191
- model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
191
+ model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
192
192
  df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
193
193
 
194
194
  AR = project.Analytics.analyzeModel(model, df, ["Survived"])
@@ -203,7 +203,7 @@ def test_custom_sizekeys():
203
203
 
204
204
 
205
205
  def test_unusual_dataoverlay():
206
- model = keras.models.load_model(fileloader('examples/Models/titanicmodel'))
206
+ model = keras.models.load_model(fileloader('examples/Models/titanicmodel.keras'))
207
207
  df: pd.DataFrame = pd.read_csv(fileloader('examples/Datasets/Titanic/train.csv'))
208
208
 
209
209
  AR = project.Analytics.analyzeModel(model, df, ["Survived"])
@@ -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
@@ -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