Skip to content

New and refactored constructors - #247

Merged
rouson merged 3 commits into
mainfrom
construct-trainable-network-from-file
Apr 19, 2025
Merged

New and refactored constructors#247
rouson merged 3 commits into
mainfrom
construct-trainable-network-from-file

Conversation

@rouson

@rousonrouson commented Apr 19, 2025

Copy link
Copy Markdown
Contributor

This PR

  1. Switches the training_data_file_t constructor default_real_from_json to accepting a file_t argument instead of a string_t array of lines.
  2. Adjusts the demo/app/{tensor_staticis,train_cloud_microphysics} to use the new training_data_files_t type.
  3. Adds and a new trainable_network_t constructor that accepts a file_t argument and uses the new constructor to simplify constructor invocations.
  4. Supports training_data_files_test_m by changing the supporting code: the training_data_files_t's type-bound to_json function now produces a file_t result from its string_t array of lines.

This commit
1. Switches the training_data_file_t constructor
default_real_from_json to accepting a file_t argument instead
of a string_t array of lines.
2. Adjusts the demo/app/{tensor_staticis,train_cloud_microphysics}
to use the new training_data_files_t type.
3. Adds and a new trainable_network_t constructor that accepts a
file_t argument and usese the new constructor to simplify
constructor invocations.
This commit fixes training_data_files_test_m by changing the
supporting code: the training_data_files_t's type-bound to_json
function now produces a file_t result from its string_t lines
array.
@rouson
rouson merged commit ae24255 into mainApr 19, 2025
@rouson
rouson deleted the construct-trainable-network-from-file branch April 19, 2025 02:52
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@rouson