Skip to content

Commit c685abb

Browse files
committed
removed commented lines
1 parent 4526c6c commit c685abb

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

src/DiscreteBayesNet/discrete_bayes_net.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ function statistics(dag::DAG, data::DataFrame)
244244

245245
parents = [inneighbors(dag, i) for i in 1:n]
246246
ncategories = [Int(infer_number_of_instantiations(data[!,i])) for i in 1 : n]
247-
# datamat = convert(Matrix{Int}, data)'
248247
datamat = Matrix{Int}(data)'
249248

250249
statistics(parents, ncategories, datamat)
@@ -256,7 +255,6 @@ function statistics(bn::DiscreteBayesNet, target::NodeName, data::DataFrame)
256255
targetind = bn.name_to_index[target]
257256
parents = inneighbors(bn.dag, targetind)
258257
ncategories = [Int(infer_number_of_instantiations(data[!,i])) for i in 1 : n]
259-
# datamat = convert(Matrix{Int}, data)'
260258
datamat = Matrix{Int}(data)'
261259
statistics(targetind, parents, ncategories, datamat)
262260
end

src/DiscreteBayesNet/structure_scoring.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ function bayesian_score(bn::DiscreteBayesNet, data::DataFrame, prior::DirichletP
111111
n = length(bn)
112112
parent_list = Array{Vector{Int}}(undef, n)
113113
ncategories = Array{Int}(undef, n)
114-
# datamat = convert(Matrix{Int}, data)'
115114
datamat = Matrix{Int}(data)'
116115

117116
for (i,cpd) in enumerate(bn.cpds)

src/sampling.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ function get_weighted_dataframe(bn::BayesNet, nsamples::Integer, evidence::Assig
170170
t[:p] = w / sum(w)
171171

172172

173-
# convert(DataFrame, t)
174173
t = DataFrame(t)
175174
end
176175

0 commit comments

Comments
 (0)