import torch import sys sys.path.append('../utils/') from utils import plotsAnalysis if __name__ == '__main__': #pathnamelist = ['reg0.0001','reg0.0005','reg0.005','reg0.001','reg1e-5','reg5e-5'] pathnamelist = ['reg0.0005'] for pathname in pathnamelist: plotsAnalysis.HeatMapBVL('num_layers', 'num_unit', 'layer vs unit Heat Map', save_name=pathname + '_heatmap.png', HeatMap_dir='models/' + pathname, feature_1_name='linear_b', feature_2_name='linear_unit')
# FORWARD PEURIFOY: Nodes 1500 - 2000, layers = 7 - 15, lr_decay_rate = 0.1-0.2, if (el[0] >= 10 and el[0] <= 15) and (el[1] >= 1500 and el[1] <= 2000) and el[3] in (1e-3,1e-4,0,1e-5) and el[2] in (0.1,0.01,1e-3,1e-4) and el[4] in [0.1,0.2,0.3]: filtered.append(f) for f in filtered: shutil.copytree(os.path.join(pathname,f),os.path.join(pathnamelist[0],f)) for pathname in pathnamelist: # Forward: Convolutional swipe #plotsAnalysis.HeatMapBVL('kernel_first','kernel_second','layer vs unit Heat Map',save_name=pathname + '_heatmap.png', # HeatMap_dir='models/'+pathname,feature_1_name='kernel_first',feature_2_name='kernel_second') # General: lr vs layernum plotsAnalysis.HeatMapBVL('num_layers','reg_scale','layer vs unit Heat Map',save_name=pathname + 'layer vs reg_scale.png', HeatMap_dir=pathname,feature_1_name='linear',feature_2_name='reg_scale') # General: Complexity swipe <<<<<<< HEAD plotsAnalysis.HeatMapBVL('num_layers','num_unit','layer vs unit Heat Map',save_name=pathname + 'layer vs unit_heatmap.png', HeatMap_dir=pathname,feature_1_name='linear',feature_2_name='linear_unit') ======= plotsAnalysis.HeatMapBVL('num_layers','num_unit','layer vs unit Heat Map',save_name=pathname + 'Peurifoy_node_vs_layers_heatmap.png', HeatMap_dir=pathname,feature_1_name='linear',feature_2_name='linear_unit') shutil.rmtree(pathname) >>>>>>> 59e71ae73cce8b748bde634d82480d2d2ba2af13 # General: lr vs layernum plotsAnalysis.HeatMapBVL('num_layers','lr','layer vs unit Heat Map',save_name=pathname + 'layer vs lr_heatmap.png', HeatMap_dir=pathname,feature_1_name='linear',feature_2_name='lr')
import torch import sys sys.path.append('../utils/') from utils import plotsAnalysis if __name__ == '__main__': #pathnamelist = ['reg0.0001','reg0.0005','reg0.005','reg0.001','reg1e-5','reg5e-5'] pathnamelist = ['ballistics'] for pathname in pathnamelist: plotsAnalysis.HeatMapBVL(plot_x_name='layer_num', plot_y_name='linear_unit', title='linear vs linear_unit Heat Map', save_name=pathname + '_heatmap.png', HeatMap_dir='models/'+pathname, feature_1_name='linear_d', feature_2_name='linear_unit') #plotsAnalysis.HeatMapBVL(plot_x_name='linear_d_layer', plot_y_name='linear_unit', title='linear_d_layer vs linear_unit Heat Map', # save_name=pathname + '_heatmap.png', HeatMap_dir='models/'+pathname, # feature_1_name='linear_d', feature_2_name='linear_unit')
import torch import sys sys.path.append('../utils/') from utils import plotsAnalysis if __name__ == '__main__': #pathnamelist = ['reg0.0001','reg0.0005','reg0.005','reg0.001','reg1e-5','reg5e-5'] pathnamelist = [''] for pathname in pathnamelist: plotsAnalysis.HeatMapBVL(plot_x_name='dim_z', plot_y_name='dim_spec', title='dim_z vs dim_spec Heat Map', save_name=pathname + '_heatmap.png', HeatMap_dir='models/' + pathname, feature_1_name='dim_z', feature_2_name='dim_spec')
import torch import sys sys.path.append('../utils/') from utils import plotsAnalysis if __name__ == '__main__': #pathnamelist = ['reg0.0001','reg0.0005','reg0.005','reg0.001','reg1e-5','reg5e-5'] pathnamelist = [''] for pathname in pathnamelist: plotsAnalysis.HeatMapBVL('kernel_first','kernel_second','layer vs unit Heat Map',save_name=pathname + '_conv_heatmap.png', HeatMap_dir='models/'+pathname,feature_1_name='kernel_first',feature_2_name='kernel_second') #plotsAnalysis.HeatMapBVL('num_layers','num_unit','layer vs unit Heat Map',save_name=pathname + '_heatmap.png', # HeatMap_dir='models/'+pathname,feature_1_name='linear_b',feature_2_name='linear_unit') #plotsAnalysis.HeatMapBVL('num_layers','reg_scale','layer vs unit Heat Map',save_name=pathname + '_heatmap.png', # HeatMap_dir='models/'+pathname,feature_1_name='linear',feature_2_name='reg_scale')
import torch import sys sys.path.append('../utils/') from utils import plotsAnalysis if __name__ == '__main__': #pathnamelist = ['reg0.0001','reg0.0005','reg0.005','reg0.001','reg1e-5','reg5e-5'] pathnamelist = ['ballistics'] for pathname in pathnamelist: plotsAnalysis.HeatMapBVL('couple_layer_num','dim_tot','couple_layer_num Heat Map',save_name=pathname + '_heatmap.png', HeatMap_dir='models/'+pathname,feature_1_name='couple_layer_num',feature_2_name='dim_tot')