Advertisement
Trainlover08

Functions for Mutation of NN

Apr 26th, 2024
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.97 KB | None | 0 0
  1. vector<vector<vector<vector<vector<vector<float>>>>>> vector_mutation(const vector<vector<vector<vector<vector<vector<float>>>>>> INPUTS) {
  2.     vector<vector<vector<vector<vector<vector<float>>>>>> output;
  3.     for(short a = 0; a < INPUTS.size(); ++a) {
  4.         for(short b = 0; b < INPUT[a].size(); ++b) {
  5.             for(short c = 0; c < INPUTS[a][b].size(); ++c) {
  6.                 for(short d = 0; d < INPUTS[a][b][c].size(); ++c) {
  7.                     for(short e = 0; e < INPUTS[a][b][c][d].size()) {
  8.                         output[a][b][c][d][e] = greedy_adjusted_value(INPUTS[a][b][c][d][e]);
  9.                     }
  10.                 }
  11.             }
  12.         }
  13.     }
  14.     return output;
  15. }
  16.  
  17. void rewrite_file(const vector<vector<vector<vector<vector<vector<float>>>>>> INPUT, vector<double> file_success, string base_file_name) {
  18.     //generate the mutations
  19.    
  20.     //run the mutations, output the score values
  21.    
  22.     //take the highest of the scores, print the copies of the top files
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement