MCPcopy Create free account

hub / github.com/CLi-de/Meta_LSM / functions

Functions83 in github.com/CLi-de/Meta_LSM

↓ 5 callersFunctioncal_measure
(pred, y_test)
utils.py:211
↓ 5 callersFunctionplot_
(y_score, y_test, color, method)
figure.py:614
↓ 3 callersFunctionbatch_generator
generate samples from one tasks
utils.py:62
↓ 3 callersMethodconstruct_model
(self, input_tensors_input=None, input_tensors_label=None, prefix='metatrain_')
modeling.py:32
↓ 3 callersMethodupdate
(self, h, w, dem, aspect, curvature, slope)
scene_segmentation.py:21
↓ 2 callersFunctionISOMAP
(X, y, figsavename)
figure.py:116
↓ 2 callersFunctionUMAP
(X, y, figsavename)
figure.py:205
↓ 2 callersFunction_PCA
(X, y, figsavename)
figure.py:71
↓ 2 callersFunctionforward
(inp, weights, sess)
figure.py:65
↓ 2 callersMethodget_gradient
(self, h, w)
scene_segmentation.py:105
↓ 2 callersFunctionnormalize
(inp, activation, reuse, scope)
utils.py:12
↓ 2 callersFunctionread_tasks
获取tasks
utils.py:172
↓ 2 callersFunctiont_SNE
(X, y, figsavename)
figure.py:160
↓ 1 callersFunctionRF_
predict and test
comparison.py:134
↓ 1 callersFunctionSHAP_
(predict_proba, x_train, x_test, f_name)
comparison.py:26
↓ 1 callersMethod__str__
(self)
scene_segmentation.py:29
↓ 1 callersMethodassignment
(self)
scene_segmentation.py:133
↓ 1 callersFunctioncal_
(y_score, y_test)
figure.py:594
↓ 1 callersFunctionget_oriandinf_Xs
(tasks, regionname)
figure.py:266
↓ 1 callersFunctiongetclusters
(gridpts_xy, taskpts, tifformat_path)
LSM.py:19
↓ 1 callersMethodinit_clusters
(self, data)
scene_segmentation.py:94
↓ 1 callersMethodinit_tasks
(self, num_clusters)
scene_segmentation.py:244
↓ 1 callersFunctioninit_weights
读取DAS权参
SHAP.py:25
↓ 1 callersMethoditerate_times
(self, loop=5)
scene_segmentation.py:228
↓ 1 callersFunctionload_weights
(npzfile)
figure.py:49
↓ 1 callersFunctionmain
1.Unsupervised pretraining; 2.segmentation and meta-task sampling; 3.meta-training and -testing
meta_LSM.py:181
↓ 1 callersMethodmake_cluster
(self, h, w)
scene_segmentation.py:56
↓ 1 callersFunctionmeta_train_test1
(HK_tasks)
utils.py:146
↓ 1 callersMethodmove_clusters
(self)
scene_segmentation.py:118
↓ 1 callersFunctionplot_candle
(scenes, K, meanOA, maxOA, minOA, std)
figure.py:344
↓ 1 callersFunctionplot_points
(ori_X, inf_X, Y, regionname)
figure.py:288
↓ 1 callersFunctionpred_LSM
LSM prediction
comparison.py:49
↓ 1 callersFunctionpredict_LSM
restore model from checkpoint
LSM.py:35
↓ 1 callersMethodreadTif
(self, fileName)
scene_segmentation.py:78
↓ 1 callersFunctionread_pts
获取tasks
utils.py:201
↓ 1 callersFunctionread_statistic
读取csv获取statistic
figure.py:308
↓ 1 callersFunctionread_tasks
获取tasks
SHAP.py:48
↓ 1 callersFunctionread_tasks
read csv and obtain tasks
figure.py:28
↓ 1 callersFunctionreadfxy_csv
(file)
LSM.py:11
↓ 1 callersMethodreadpts
(self, filepath)
scene_segmentation.py:250
↓ 1 callersMethodsampling
(self, im_geotrans, path)
scene_segmentation.py:258
↓ 1 callersMethodsave_current_image
(self, tiffile, savename)
scene_segmentation.py:206
↓ 1 callersFunctionsave_tasks
将tasks存到csv中
utils.py:159
↓ 1 callersFunctionsavepts_fortask
(clusters, file)
utils.py:188
↓ 1 callersMethodsavetif
(self, tiffile, savename, image_arr)
scene_segmentation.py:195
↓ 1 callersFunctiontasksbatch_generator
generate batch tasks
utils.py:36
↓ 1 callersFunctiontest
(model, saver, sess, exp_string, tasks, num_updates=5)
meta_LSM.py:115
↓ 1 callersFunctiontrain
(model, saver, sess, exp_string, tasks, resume_itr)
meta_LSM.py:55
↓ 1 callersFunctiontransform_relu
(inputX, weights, bias, activations=tf.nn.relu)
figure.py:61
↓ 1 callersMethodupdate_cluster
(self)
scene_segmentation.py:162
↓ 1 callersMethodwriteTiff
(self, im_data, im_width, im_height, im_bands, im_geotrans, im_proj, path)
scene_segmentation.py:174
FunctionANN_
predict and test
comparison.py:82
FunctionDBN_
(x_train, y_train, x_test, y_test)
comparison.py:104
FunctionMLP_fit_pred
(x_train, x_test, y_train, y_test)
figure.py:561
FunctionRF_fit_pred
(x_train, x_test, y_train, y_test)
figure.py:586
FunctionSVM_
predict and test
comparison.py:59
FunctionSVM_fit_pred
(x_train, x_test, y_train, y_test)
figure.py:554
Method__init__
must call construct_model() after initializing MAML!
modeling.py:13
Method__init__
(self, h, w, dem, aspect, curvature, slope)
scene_segmentation.py:15
Method__init__
(self, filename, K, M)
scene_segmentation.py:63
Method__init__
(self, clusters)
scene_segmentation.py:240
Method__repr__
(self)
scene_segmentation.py:33
Methodconstruct_DAS_weights
读取DAS权参
modeling.py:162
Methodconstruct_fc_weights
(self)
modeling.py:141
Methodforward_fc
(self, inp, weights, reuse=False)
modeling.py:154
Functionload_data
(filepath, dim_input)
figure.py:545
Functionmeta_train_test
(fj_tasks, fl_tasks, mode=0)
utils.py:95
Functionmse
(pred, label)
utils.py:24
Methodopen_image
Return: 3D array, row col [LAB]
scene_segmentation.py:39
Functionplot_auroc
(n_times, y_score_SVM, y_score_MLP, y_score_DBN, y_score_RF, y_score_proposed, y_test, y_test_proposed)
figure.py:592
Functionplot_candle1
(K, meanOA, maxOA, minOA, std, color_, label_, pos_)
figure.py:728
Functionplot_histogram
设置框图
figure.py:478
Functionplot_lines
设置框图
figure.py:437
Functionplot_scatter
设置框图
figure.py:399
Functionpred_prob
(X_)
SHAP.py:42
Functionread_csv
(path)
figure.py:40
Functionread_f_l_csv
(file)
figure.py:675
Functionread_statistic1
读取csv获取statistic
figure.py:323
Functionread_statistic2
读取csv获取statistic
figure.py:334
Methodsave_lab_image
Convert the array to RBG, then save the image
scene_segmentation.py:49
Methodtask_metalearn
Perform gradient descent for one task in the meta-batch.
modeling.py:55
Functionvisualization
()
figure.py:249
Functionxent
(pred, label)
utils.py:30