Skip to content

Commit

Permalink
eachindex
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Jul 17, 2023
1 parent e0fe9f0 commit 4c6cea2
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions old/scripts/SVR1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ const RBF = Int32(2)
const SIGMOID = Int32(3)
const PRECOMPUTED = Int32(4)



shell_path = pwd()
this_folder_path = dirname(Base.source_path())
#println(shell_path)
Expand Down
2 changes: 0 additions & 2 deletions old/scripts/SVR2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ const RBF = Int32(2)
const SIGMOID = Int32(3)
const PRECOMPUTED = Int32(4)



shell_path = pwd()
cd(dirname(Base.source_path()))
const svmlib = abspath("../libsvm.so.2")
Expand Down
2 changes: 0 additions & 2 deletions old/scripts/SVR_CSV_format.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ const RBF = Int32(2)
const SIGMOID = Int32(3)
const PRECOMPUTED = Int32(4)



shell_path = pwd()
cd(dirname(Base.source_path()))
const svmlib = abspath("../libsvm.so.2")
Expand Down
2 changes: 0 additions & 2 deletions old/scripts/SVR_JLD_format.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ const RBF = Int32(2)
const SIGMOID = Int32(3)
const PRECOMPUTED = Int32(4)



shell_path = pwd()
cd(dirname(Base.source_path()))
const svmlib = abspath("../libsvm.so.2")
Expand Down
2 changes: 0 additions & 2 deletions old/scripts/SVR_libsvm_format.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ const RBF = Int32(2)
const SIGMOID = Int32(3)
const PRECOMPUTED = Int32(4)



shell_path = pwd()
cd(dirname(Base.source_path()))
const svmlib = abspath("../libsvm.so.2")
Expand Down
6 changes: 3 additions & 3 deletions old/tools/grid.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using PyCall
import PyCall
path_to_use_for_grid = dirname(Base.source_path())

function grid(num_w, ssh_w, telnet_w, trialfile, options)
trialfile = abspath(trialfile)
options = split(options, " ")
unshift!(PyVector(pyimport("sys")["path"]), "")
unshift!(PyCall.PyVector(PyCall.pyimport("sys")["path"]), "")
p = pwd()
cd(path_to_use_for_grid)
@pyimport gridregressionjulia
@PyCall.pyimport gridregressionjulia
gridregressionjulia.set_for_parallel(num_w, ssh_w, telnet_w)
best_mse, best_param = gridregressionjulia.find_parameters(trialfile, options)
cd(p)
Expand Down

0 comments on commit 4c6cea2

Please sign in to comment.