Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VahidooX/DeepCCA
/ functions
Functions
11 in github.com/VahidooX/DeepCCA
⨍
Functions
11
◇
Types & classes
0
↓ 3 callers
Function
make_numpy_array
converts the input to numpy arrays
utils.py:24
↓ 2 callers
Function
build_mlp_net
(layer_sizes, input_size, reg_par)
models.py:27
↓ 2 callers
Function
load_data
loads the data from the gzip pickled files, and converts to numpy arrays
utils.py:9
↓ 1 callers
Function
cca_loss
The main loss function (inner_cca_objective) is wrapped in this function due to the constraints imposed by Keras on objective functions
objectives.py:4
↓ 1 callers
Function
create_model
builds the whole model the structure of each sub-network is defined in build_mlp_net, and it can easily get substituted with a more effic
models.py:8
↓ 1 callers
Function
linear_cca
An implementation of linear CCA # Arguments: H1 and H2: the matrices containing the data for view 1 and view 2. Each row is a sample.
linear_cca.py:4
↓ 1 callers
Function
load_pickle
loads and returns the content of a pickled file it handles the inconsistencies between the pickle packages available in Python 2 and 3
utils.py:53
↓ 1 callers
Function
svm_classify
trains a linear SVM on the data input C specifies the penalty factor of SVM
utils.py:32
↓ 1 callers
Function
test_model
produce the new features by using the trained model # Arguments model: the trained model data1 and data2: the train, validation, a
DeepCCA.py:57
↓ 1 callers
Function
train_model
trains the model # Arguments data1 and data2: the train, validation, and test data for view 1 and view 2 respectively. data should be
DeepCCA.py:15
Function
inner_cca_objective
It is the loss function of CCA as introduced in the original paper. There can be other formulations. It is implemented by Theano tens
objectives.py:9