Skip to content
Snippets Groups Projects
Commit cae12c98 authored by atalanti's avatar atalanti
Browse files

Comments added in scripts

parent 7d1c0d8c
No related branches found
No related tags found
No related merge requests found
Showing
with 59 additions and 1 deletion
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
function [candidatesHsicLevel1, dependencyThresholdHsic]...
= calcCandidatesLevel1(info, y1, r)
......
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
function [statHSIC, pHSIC] = calcDependencyY0Y1(y0, y1, type)
% calculate dependency between P^i and M^i variables
pars.pairwise = true;
......
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
function [statHSIC, pHSIC] = calcDependencyY1R(y1, r)
% calculate dependency between M^i and R
pars.pairwise = true;
......
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
function [statResultsTable] = calcErrorCausalityFpFn
%CALCERRORCAUSALITY Summary of this function goes here
% Detailed explanation goes here
......
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
function [Y] = createNodesWithNoiseTerms(n,nTrials)
mu = 0;
Y = nan(nTrials, n);
......
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
function [outputTableHsicHsicSub] =...
detectCausalFeatures(info)
......
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
function outputTable = doCausalityTest(info, y0, y1, r, group, candidatesLevel1, dependencyThreshold)
nMethods = 1;
......
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
function [dirCauses, indirCauses] = findCausesFromConnections(connections)
%FINDCAUSESFROMCONNECTIONS Summary of this function goes here
% Detailed explanation goes here
......
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
function children = findChildren(children, connections, node)
%FINDCHILDRED Summary of this function goes here
% Detailed explanation goes here
......
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
function [causesFoundHsic] = mainSimulation(y0, y1, r)
info.minDependencyThreshold = 0.05;
......
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
function [h, hm1, hm2] = plotFnFpForSpars(iSpars, nSamplesUniqueValues, nodesUniqueValues,...
statResultsTable, sparsenessUniqueValues, allColors)
......@@ -11,4 +15,4 @@ plot(nSamplesUniqueValues, fpAll,'color', allColors(iSpars,:), 'Markersize', 9,
plot(nSamplesUniqueValues, fnAll,'color', allColors(iSpars,:), 'Markersize', 9, 'Marker', 's', 'LineStyle', '--', 'LineWidth', 1.5); hold on;
h = plot(nSamplesUniqueValues, fpAll,'color', allColors(iSpars,:), 'LineStyle', '-','LineWidth', 1.5); hold on;
end
\ No newline at end of file
end
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
clear all
a = load('statTableCausesGraphsFPandFN_GNChangeSTDPR025_5.mat');
b = load('statTableCausesGraphsFPandFN_GNChangeSTDPR025_20.mat');
......
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
% Main entry point script for the simulations
% simulate graph with assumptions 1-5:
clear all
close all
tic
......
% Copyright (C)
% Max Planck Institute for Intelligent Systems,
% Atalanti A. Mastakouri atalanti.mastakouri@tuebingen.mpg.de
function [g, bg] = visualizeGraph(n, allConnections)
m = 2*n+1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment