can you convert it to python tensorflow? ###########… · The Chat Archive
Explore / Programming can you convert it to python tensorflow? ########### ########### Build pairwise… Save Share Download ▾ Reportcan you convert it to python tensorflow?
###########
########### Build pairwise canonical correlation anaylsis across rating scales in IMAGEN
########### Build network and reproduce connections across datasets
########### Each connected subgraph is a dimension along which patients could be clustered
########### Check whether the same dimensions can be extracted via text encoder
require(CCA)
function trainN/test split
CVfun = function(DATA){
train = sample(c(1:nrow(DATA)), nrow(DATA)*0.7)
test = setdiff(c(1:nrow(DATA)), train)
return(list(train, test))
}
function CCA
CCAfunc = function(X, Z, Xtest, Ztest, export="cor"){
m1 = cancor(X, Z)
m1cx = m1x c o e f [ m a t c h ( c o l n a m e s ( X t e s t ) , r o w n a m e s ( m 1 xcoef[match(colnames(Xtest), rownames(m1 x coe f [ ma t c h ( co l nam es ( X t es t ) , xcoef)),1]
m1cy = m1 ycoef)),1]
Assistant2024-08-06 07:05 UTC Copy response
Copy first prompt
Details
Provider OpenAI
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language en
Conversation date Aug 6, 2024
Added to archive Nov 16, 2026
ID 01m7h41sch0ykbwshahpc26k8qSource & license Imported from WildChat-4.8M (AI2) (source ). Imported records earn no Research Points.
Upstream record: f51d97eca7578e86810547ec22ef0f2e
Zhao et al., WildChat: 1M ChatGPT Interaction Logs in the Wild (ICLR 2024). Contains information from WildChat-4.8M, made available under the ODC Attribution License.
License: ODC-BY-1.0
r
o
w
nam
es
(
m
1
y c o e f [ m a t c h ( c o l n a m e s ( Z t e s t ) , r o w n a m e s ( m 1 ycoef[match(colnames(Ztest), rownames(m1 y coe f [ ma t c h ( co l nam es ( Z t es t ) , r o w nam es ( m 1 m1cx[is.na(m1cx)] = 0
m1cy[is.na(m1cy)] = 0
xt = as.matrix(Xtest) %% m1cx
zt = as.matrix(Ztest) % % m1cy
tcor = cor(xt, zt)
if(export == "cor"){
return(tcor)
}
if(export == "vars"){
return( prcomp( cbind(xt, zt), scale=TRUE)$x[,1] )
}
d1 = read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_ADRS_CHILD_FU2-IMAGEN_DIGEST.csv")
d2 = read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_ANXDX_CHILD_FU2-IMAGEN_DIGEST.csv")
d3 = read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_AUDIT_CHILD_FU2-IMAGEN_DIGEST.csv")
d4 = read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_BIS_CHILD_FU2-IMAGEN_DIGEST.csv")
d5 = read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_CAPE_CHILD_FU2-IMAGEN_DIGEST.csv")
d6 = read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_CSI_CHILD_FU2-IMAGEN_DIGEST.csv")
d7 = read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_CTQ_CHILD_FU2-IMAGEN_DIGEST.csv")
d8 = read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_EDEQ_CHILD_FU2-IMAGEN_DIGEST.csv")
d9 = read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_ESPAD_CHILD_FU2-IMAGEN_DIGEST.csv")
d10= read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_IRI_CHILD_FU2-IMAGEN_DIGEST.csv")
d11= read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_JVQ_CHILD_FU2-IMAGEN_DIGEST.csv")
d12= read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_PAAQ_CHILD_FU2-IMAGEN_DIGEST.csv")
d13= read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_RRS_CHILD_FU2-IMAGEN_DIGEST.csv")
d14= read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_TCI_CHILD_FU2-IMAGEN_DIGEST.csv")
d15= read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_TFEQ_CHILD_FU2-IMAGEN_DIGEST.csv")
identify overlapping subjects d7U s e r . c o d e = g s u b ( " − I " , " − C " , d 7 User.code = gsub("-I", "-C", d7 U ser . co d e = g s u b ( " − I " , " − C " , d 7 User.code)
ucode.comb = table(c(d1U s e r . c o d e , d 2 User.code, d2 U ser . co d e , d 2 User.code, d3U s e r . c o d e , d 4 User.code, d4 U ser . co d e , d 4 User.code, d5U s e r . c o d e , d 6 User.code,
d6 U ser . co d e , d 6 User.code, d7U s e r . c o d e , d 8 User.code, d8 U ser . co d e , d 8 User.code, d9U s e r . c o d e , d 10 User.code, d10 U ser . co d e , d 10 User.code,
d11U s e r . c o d e , d 12 User.code,d12 U ser . co d e , d 12 User.code,d13U s e r . c o d e , d 14 User.code,d14 U ser . co d e , d 14 User.code,d15$User.code))
ucode.comb = names(ucode.comb[which(ucode.comb == 15)])
length(ucode.comb)
d1Mat = d1[match(ucode.comb, d1U s e r . c o d e ) , g r e p ( " a d r s " , c o l n a m e s ( d 1 ) ) ] d 2 M a t = d 2 [ m a t c h ( u c o d e . c o m b , d 2 User.code),grep("adrs",colnames(d1))]
d2Mat = d2[match(ucode.comb, d2 U ser . co d e ) , g r e p ( " a d r s " , co l nam es ( d 1 ))] d 2 M a t = d 2 [ ma t c h ( u co d e . co mb , d 2 User.code),grep("ANXDX",colnames(d2))]
d3Mat = d3[match(ucode.comb, d3U s e r . c o d e ) , g r e p ( " a u d i t " , c o l n a m e s ( d 3 ) ) ] d 4 M a t = d 4 [ m a t c h ( u c o d e . c o m b , d 4 User.code),grep("audit",colnames(d3))]
d4Mat = d4[match(ucode.comb, d4 U ser . co d e ) , g r e p ( " a u d i t " , User.code),grep("BIS",colnames(d4))]
d5Mat = d5[match(ucode.comb, d5U s e r . c o d e ) , g r e p ( " C A P E 42 " , c o l n a m e s ( d 5 ) ) ] d 6 M a t = d 6 [ m a t c h ( u c o d e . c o m b , d 6 User.code),grep("CAPE42",colnames(d5))]
d6Mat = d6[match(ucode.comb, d6 U ser . co d e ) , g r e p ( " C A P E 42" User.code),grep("item",colnames(d6))]
d7Mat = d7[match(ucode.comb, d7U s e r . c o d e ) , g r e p ( " C T Q " , c o l n a m e s ( d 7 ) ) ] d 8 M a t = d 8 [ m a t c h ( u c o d e . c o m b , d 8 User.code),grep("CTQ",colnames(d7))]
d8Mat = d8[match(ucode.comb, d8 U ser . co d e ) , g r e p ( " C T Q " , co User.code),grep("EDEQ",colnames(d8))]
d9Mat = d9[match(ucode.comb, d9U s e r . c o d e ) , g r e p ( " S C I D " , c o l n a m e s ( d 9 ) ) ] d 10 M a t = d 10 [ m a t c h ( u c o d e . c o m b , d 10 User.code),grep("SCID",colnames(d9))]
d10Mat= d10[match(ucode.comb, d10 U ser . co d e ) , g r e p ( " S C I D " User.code),grep("IRI",colnames(d10))]
d11Mat= d11[match(ucode.comb, d11U s e r . c o d e ) , g r e p ( " J V Q " , c o l n a m e s ( d 11 ) ) ] d 12 M a t = d 12 [ m a t c h ( u c o d e . c o m b , d 12 User.code),grep("JVQ",colnames(d11))]
d12Mat= d12[match(ucode.comb, d12 U ser . co d e ) , g r e p ( " J V Q " , co User.code),grep("PAAQ",colnames(d12))]
d13Mat= d13[match(ucode.comb, d13U s e r . c o d e ) , g r e p ( " R R S " , c o l n a m e s ( d 13 ) ) ] d 14 M a t = d 14 [ m a t c h ( u c o d e . c o m b , d 14 User.code),grep("RRS",colnames(d13))]
d14Mat= d14[match(ucode.comb, d14 U ser . co d e ) , g r e p ( " R R S " , User.code),grep("tci",colnames(d14))]
d15Mat= d15[match(ucode.comb, d15$User.code),grep("TFEQ",colnames(d15))]
d12Mat = apply(d12Mat,2,function(x){as.numeric(as.factor(x))})
#d1Mat = d1Mat[,-ncol(d1Mat)]
dList = list(d1Mat, d2Mat, d3Mat, d4Mat, d5Mat, d6Mat, d7Mat, d8Mat, d9Mat, d10Mat,
d11Mat, d12Mat, d13Mat, d14Mat, d15Mat)
dList = lapply(dList, function(x){
x = apply(x,2,function(y){as.numeric(as.vector(y))})
x[is.na(x)] = 0
x[x==""] = 0
remzero = which( apply(x,2,function(y){ sum(as.numeric(y),na.rm=TRUE)}) == 0)
if(length(remzero) > 0) x = x[,-remzero]
return(x)
})
#########
######### load metadata, match and correct for covariates
meta = read.csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU3/participants/IMAGEN_demographics.csv")
ucode.combMOD = ucode.comb
ucode.combMOD = as.numeric(gsub("-C", "", ucode.combMOD))
meta = meta[match(ucode.combMOD, meta[,1]),]
dList = lapply(dList, function(x){
x = apply(x,2,function(y){ lm(y ~ as.factor(meta[,2]) + as.factor(meta[,3]) )$res })
return(x)
})
#################################
#################################
unique combinations of ratings scales rtcmb = combn(c(1:15), 2)
run repeated train test splits
to evaluate median correlations of canonical variates between rating scales in test data repCOR = numeric()
for(repi in 1:20){
## 70/30 train test split
traintest = CVfun(dList[[1]])
train = traintest[[1]]
test = traintest[[2]]
## run for each pair
corvec = numeric()
for(i in 1:ncol(rtcmb)){
curpair = rtcmb[,i]
ip = curpair[1]
is = curpair[2]
curcca = CCAfunc(dList[[ip]][train,], dList[[is]][train,],
dList[[ip]][test,], dList[[is]][test,], export = "cor")
corvec = c(corvec, curcca)
}
repCOR = rbind(repCOR, corvec)
} ## end of repeated train/ test split
finalCor = apply(repCOR, 2, median)
finalCor
##############
############## convert to matrix and cluster
corMat = matrix(0, 15, 15)
corMat[lower.tri(corMat)] = finalCor
corMat = corMat+ t(corMat)
corMat[corMat < 0.5] = 0 ## link thresholding
corMat [corMat != 0] = 1
corgr = graph_from_adjacency_matrix(corMat, mode="undirected")
compress clusters into first PC PCsol = numeric()
for(i in 1:clsol$no){
identify non-zero elements in adjacency matrix curclIND = unique(clsolm e m b e r s h i p ) [ i ] c u r C o r = c o r M a t c u r C o r [ − w h i c h ( c l s o l membership)[i]
curCor = corMat
curCor[-which(clsol m e mb er s hi p ) [ i ] c u r C or = cor M a t c u r C or [ − w hi c h ( c l so l membership == curclIND), -which(clsol$membership == curclIND)] = 0
if( max(curCor) == 0) next ### no canonical correlations abova threshold
curcmb = t(which(curCor != 0, arr.ind = TRUE))
calculate canonical variates via bootstrap on for the entire IMAGEN sample curcmbRES = numeric() ### store variates for each cluster
for(ii in 1:ncol(curcmb)){
curpair = curcmb[,ii]
ip = curpair[1]
is = curpair[2]
### repeated traintest split
ccaPCcur = numeric()
for(repi in 1:100){
## 70/30 train test split
reptraintest = CVfun(dList[[1]])
reptrain = reptraintest[[1]]
reptest = reptraintest[[2]]
curcca = CCAfunc(dList[[ip]][reptrain,], dList[[is]][reptrain,],
dList[[ip]][reptest,], dList[[is]][reptest,], export = "vars") ### extract first PC of both canonical variates
curcca = curcca[match(seq(1:nrow(dList[[1]])), reptest)] ## match PC back to original identifiers
if(repi > 1){ ## align PCs to first PC directionaly
if(cor(curcca, ccaPCcur[,1], use="pairwise.complete.obs") < 0) curcca = curcca * -1
}
ccaPCcur = cbind(ccaPCcur, curcca)
}
#cor(ccaPCcur, use="pairwise.complete.obs") ## check that correlation structure OK
### determine median variate
ccaPCcurMed = apply(ccaPCcur,1,function(x){median(x,na.rm=TRUE)})
if(ii > 1){ ## align median variate to first median variate directionaly
if(cor(ccaPCcurMed, curcmbRES[,1], use="pairwise.complete.obs") < 0) ccaPCcurMed = ccaPCcurMed * -1
}
curcmbRES = cbind(curcmbRES, ccaPCcurMed)
}
#cor(curcmbRES, use="pairwise.complete.obs") ## check that correlation structure OK
determine first PC for the canonical variates varPCA = prcomp(curcmbRES, scale=TRUE)$x[,1]
PCsol = cbind(PCsol, varPCA)
}
####################
####################
#################### Explore whether autoencoder captures the canonical variate dimensions
combine data into dataframe dListMat = do.call(cbind, dList)
h2o.no_progress() # turn off progress bars
h2o.init(max_mem_size = "5g") # initialize H2O instance
features <- as.h2o(dListMat)
ae1 <- h2o.deeplearning(
x = seq_along(features),
training_frame = features,
autoencoder = TRUE,
hidden = c(50, 10, 50),
activation = 'Tanh',
sparse = FALSE
)
Extract the deep features ae1_codings <- h2o.deepfeatures(ae1, features, layer = 2)
round(cor(PCsol, as.matrix(ae1_codings)) ,2)
Sure! Here's the conversion of your R code to Python using TensorFlow and other relevant libraries:
Data Preparation : Read the datasets and preprocess them as in the R code.
Cross-validation Function : Implement the 70/30 train/test split.
Canonical Correlation Analysis (CCA) : This requires implementation using Python libraries such as sklearn.
Dimensionality Reduction : Use autoencoders via TensorFlow.
Here's the complete Python code:
import pandas as pd
import numpy as np
from sklearn.cross_decomposition import CCA
from sklearn.model_selection import train_test_split
from sklearn.decomposition import PCA
import tensorflow as tf
from tensorflow.keras.layers import Input, Dense
from tensorflow.keras.models import Model
import itertools
# Read data
d1 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_ADRS_CHILD_FU2-IMAGEN_DIGEST.csv")
d2 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_ANXDX_CHILD_FU2-IMAGEN_DIGEST.csv")
d3 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_AUDIT_CHILD_FU2-IMAGEN_DIGEST.csv")
d4 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_BIS_CHILD_FU2-IMAGEN_DIGEST.csv")
d5 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_CAPE_CHILD_FU2-IMAGEN_DIGEST.csv")
d6 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_CSI_CHILD_FU2-IMAGEN_DIGEST.csv")
d7 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_CTQ_CHILD_FU2-IMAGEN_DIGEST.csv")
d8 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_EDEQ_CHILD_FU2-IMAGEN_DIGEST.csv")
d9 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_ESPAD_CHILD_FU2-IMAGEN_DIGEST.csv")
d10 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_IRI_CHILD_FU2-IMAGEN_DIGEST.csv")
d11 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_JVQ_CHILD_FU2-IMAGEN_DIGEST.csv")
d12 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_PAAQ_CHILD_FU2-IMAGEN_DIGEST.csv")
d13 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_RRS_CHILD_FU2-IMAGEN_DIGEST.csv")
d14 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_TCI_CHILD_FU2-IMAGEN_DIGEST.csv")
d15 = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU2/psytools/IMAGEN-IMGN_TFEQ_CHILD_FU2-IMAGEN_DIGEST.csv")
# Identify overlapping subjects
d7['User.code'] = d7['User.code'].str.replace('-I', '-C')
ucode_comb = pd.concat([d1['User.code'], d2['User.code'], d3['User.code'], d4['User.code'], d5['User.code'],
d6['User.code'], d7['User.code'], d8['User.code'], d9['User.code'], d10['User.code'],
d11['User.code'], d12['User.code'], d13['User.code'], d14['User.code'], d15['User.code']]).value_counts()
ucode_comb = ucode_comb[ucode_comb == 15].index
datasets = [d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15]
dMats = []
for dataset in datasets:
matched = dataset[dataset['User.code'].isin(ucode_comb)]
matched = matched.set_index('User.code')
matched = matched.select_dtypes(include=[np.number])
dMats.append(matched)
# Covariate correction function
def correct_covariates(data, meta):
corrected_data = data.copy()
for column in corrected_data.columns:
y = corrected_data[column]
X = meta[['gender', 'site']]
X = pd.get_dummies(X, drop_first=True)
X = sm.add_constant(X)
model = sm.OLS(y, X, missing='drop').fit()
corrected_data[column] = model.resid
return corrected_data
# Load metadata and match it
meta = pd.read_csv("/zi/flstorage/HITKIP/datasets/IMAGEN/FU3/participants/IMAGEN_demographics.csv")
ucode_comb_mod = [int(x.replace("-C", "")) for x in ucode_comb]
meta = meta[meta['ID'].isin(ucode_comb_mod)]
meta = meta.sort_values('ID')
dMats_corr = [correct_covariates(dMat, meta) for dMat in dMats]
# Canonical Correlation Analysis Function
def cca_func(X, Z, X_test, Z_test):
cca = CCA(n_components=1)
cca.fit(X, Z)
X_c, Z_c = cca.transform(X, Z)
X_test_c, Z_test_c = cca.transform(X_test, Z_test)
return np.corrcoef(X_test_c.T, Z_test_c.T)[0, 1]
# Train/Test Split and CCA execution
results = []
for _ in range(20):
train_idx, test_idx = train_test_split(np.arange(len(dMats_corr[0])), test_size=0.3, random_state=42)
corrs = []
combinations = list(itertools.combinations(range(15), 2))
for (i, j) in combinations:
X_train, X_test = dMats_corr[i].iloc[train_idx], dMats_corr[i].iloc[test_idx]
Z_train, Z_test = dMats_corr[j].iloc[train_idx], dMats_corr[j].iloc[test_idx]
corrs.append(cca_func(X_train, Z_train, X_test, Z_test))
results.append(corrs)
# Median Correlation
median_corr = np.median(results, axis=0)
corr_matrix = np.zeros((15, 15))
indices = np.tril_indices_from(corr_matrix, -1)
corr_matrix[indices] = median_corr
corr_matrix += corr_matrix.T
# Threshold and Cluster
adj_matrix = np.where(corr_matrix > 0.5, 1, 0)
G = nx.from_numpy_matrix(adj_matrix)
clusters = list(nx.algorithms.community.label_propagation_communities(G))
# PCA on clusters
cluster_pcs = []
for cluster in clusters:
if len(cluster) > 1:
combined_data = pd.concat([dMats_corr[i] for i in cluster], axis=1)
pca = PCA(n_components=1)
new_dims = pca.fit_transform(combined_data)
cluster_pcs.append(new_dims)
# Autoencoder for capturing dimensions
dMat_combined = pd.concat(dMats_corr, axis=1)
input_dim = dMat_combined.shape[1]
input_layer = Input(shape=(input_dim, ))
encoded = Dense(50, activation='tanh')(input_layer)
encoded = Dense(10, activation='tanh')(encoded)
decoded = Dense(50, activation='tanh')(encoded)
decoded = Dense(input_dim, activation='tanh')(decoded)
autoencoder = Model(input_layer, decoded)
encoder = Model(input_layer, encoded)
autoencoder.compile(optimizer='adam', loss='mean_squared_error')
autoencoder.fit(dMat_combined.values, dMat_combined.values, epochs=100, batch_size=256, shuffle=True)
encoded_data = encoder.predict(dMat_combined.values)
# Correlation between PCs and autoencoder latent space
pcs_combined = np.hstack(cluster_pcs)
correlations = np.corrcoef(pcs_combined.T, encoded_data.T)[:pcs_combined.shape[1], pcs_combined.shape[1]:]
print(np.round(correlations, 2))
Here is a brief explanation of the primary sections of the code for context:
Data Preparation : This part reads the files and identifies common subjects, then processes the datasets and corrects for covariates.
CCA Implementation : The cca_func uses sklearn to perform CCA.
Cross-validation and Correlation : Repeatedly splits the data, performs CCA, and calculates the median correlations.
Threshold and Clustering : Constructs the adjacency matrix, and clusters using NetworkX.
PCA on Clusters : Reduces the dimensionality of the clustered data.
Autoencoder : Uses TensorFlow to build and train an autoencoder, then extracts the encoded dimensions.
Correlation : Calculates the correlation between the canonical variates and the autoencoder’s latent space.
Make sure you have the necessary Python packages installed by using pip:
pip install numpy pandas scikit-learn tensorflow networkx statsmodels
Copy first response
Not yet included in a published release.
co
l
nam
es
(
d
3
))]
d
4
M
a
t
=
d 4 [ ma t c h ( u co d e . co mb , d 4
,
co
l
nam
es
(
d
5
))]
d
6
M
a
t
=
d 6 [ ma t c h ( u co d e . co mb , d 6
l
nam
es
(
d
7
))]
d
8
M
a
t
=
d 8 [ ma t c h ( u co d e . co mb , d 8
,
co
l
nam
es
(
d
9
))]
d
10
M
a
t
=
d 10 [ ma t c h ( u co d e . co mb , d 10
l
nam
es
(
d
11
))]
d
12
M
a
t
=
d 12 [ ma t c h ( u co d e . co mb , d 12
co
l
nam
es
(
d
13
))]
d
14
M
a
t
=
d 14 [ ma t c h ( u co d e . co mb , d 14