I am actually experiencing a similar problem on Julia Studio on my Mac OSX
10.9.3. The code below is a clip from an optimization algorithm I am
writing. If I have theta (which is a 4-element vector; it is called at
the bottom) already set to some value, then copying and pasting the code
below into Julia Studio DOES NOT update theta. However, if I run this code
line by line, it does update theta.
####### Load Data
iris=readtable("iris.csv",header=true)
xx=iris[:,2:5]
yy=iris[:,6]
###### Extract Training Set
x=xx[1:80,:]
y=yy[1:80]
y=pool(y) #make it a factor ("pooled data array)
y=[int(y[i]==levels(y)[1]) for i=1:length(y)] #convert to numeric via
"comprehension syntax"
y=2y-1 #convert {0,1} to {-1,1}
y=y*-1
####### Set Types
x=matrix(x)
y=float(y)
####START
nsamples=size(x)[1];
nfeatures=size(x)[2];
theta=rep(0.1,nfeatures);