Questions tagged [hessian]

Hessian is a simple binary protocol for connecting web services.

Hessian is a simple binary protocol for connecting web services. More info at http://hessian.caucho.com/

158 questions
1
vote
1 answer

Custom objects with HessianKit and java backend

I have an iPhone app that uses HessianKit to talk to my java server. A couple of the methods I use return custom objects, and I haven't been able to figure out how to make them load as the correct object on the iPhone side. Here is basically what I…
cain
  • 1,028
  • 1
  • 12
  • 26
1
vote
1 answer

parsing error when sending double from android to php with hessian

I want to send a double value from my android client to the PHP server using hessian but either the writeDouble function on the client or the parseDouble function on the server has an error. (We transmit many different data types correctly, only the…
qedejavu
  • 442
  • 6
  • 19
1
vote
1 answer

HessianKit linking failure

I am trying to link HessianKit with a simple Xcode iOS test project. I tried different build configurations. I added the -ObjC switch to both the linker command line for the library project and for my main project. This is the command line from the…
Matthias Wuttke
  • 1,982
  • 2
  • 21
  • 38
1
vote
0 answers

A faster Hessian vector product in PyTorch

I need to take a Hessian vector product of a loss w.r.t. model parameters a large number of times. It seems that there is no efficient way to do this and a for loop is always required, resulting in a large number of independent autograd.grad calls.…
Thomas Wagenaar
  • 6,489
  • 5
  • 30
  • 73
1
vote
0 answers

@JsonProperty alternative in Spring Hessian

I have a legacy Spring Boot Application using the HessianServiceExporter. The application uses serializable DTOs, which use a different naming convention than usual. This throws Sonar errors which I would like to solve similar to the @JsonProperty…
Marvin
  • 129
  • 1
  • 13
1
vote
2 answers

How to use Optim.jl optimize function with a summation

I'm currently working on a research project where I need to find the correct value for $\beta$ that minimizes the function $\sum_i (p_i-\avg(n_c)_i)^2$. Here, $\avg(n_c)_i$ is an array that is the function I'm trying to match $p_i$ to. $p_i$ depends…
1
vote
1 answer

Computing the Hessian of a Simple NN in PyTorch wrt to Parameters

I am relatively new to PyTorch and trying to compute the Hessian of a very simple feedforward networks with respect to its weights. I am trying to get torch.autograd.functional.hessian to work. I have been digging the forums and since this is a…
Kasra
  • 13
  • 2
1
vote
0 answers

Hessian matrix w.r.t parameter of MLP is not symmetric (TF2.0)

I tried to calculate the Hessian matrix w.r.t. model parameters However, each tensor shape in the Hessian matrix was not symmetric. import tensorflow as tf x_train = tf.constant(tf.random.uniform(shape=(100, 24), minval=0, maxval=100)) y_train =…
MyPrunus
  • 57
  • 5
1
vote
2 answers

How do I send a DateTime or some sort of timestamp from PHP to Java using Hessian binary remoting protocol?

There is a Java service that I need to invoke from PHP that looks something like this: getProductsForMode(java.util.Calendar date, int modeId) I'm having trouble mapping my PHP date class to the java.util.Calendar class. I've tried a couple…
Jordan Brown
  • 13,603
  • 6
  • 30
  • 29
1
vote
1 answer

Best practices to test Hessian RPC requests with Karate

We're successfully using Karate to automate tests for REST and SOAP webservices. In addition, we're having some legacy webservices, which are based on the Hessian Web Service protocol (http://hessian.caucho.com/). Hessian calls are HTTP requests as…
hueller
  • 314
  • 2
  • 9
1
vote
1 answer

Cache Hessian services results base on the service name and parameters

I have to call to get many data from Hessian services, the services are quite slow. Because the Hessian calls do not update data and the results are rarely changed. I wonder is there anyway to cache the result base on the service name and parameters…
Loc Phan
  • 4,304
  • 4
  • 29
  • 35
1
vote
0 answers

Negative diagonal values in hessian matrix in optim function

I am trying to estimate the parameters of my log-likelihood function using optim in R. The optimisation process converges and the parameter estimates are quite intuitive and according to the expectations. The problem arises when I want to compute…
MoRA
  • 45
  • 8
1
vote
1 answer

How I display a math function in Julia?

I'm new in Julia and I'm trying to learn to manipulate calculus on it. How do I do if I calculate the gradient of a function with "ForwardDiff" like in the code below and see the function next? I know if I input some values it gives me the gradient…
1
vote
1 answer

Tensorflow tf.hessian returns only zeros

I have a trained keras model of which I need to compute both the gradients and hessian of the output respect to the input. The input X is a 5000x3 numpy array and the output y is 5000x1. The gradient computation works fine both using keras'…
F. Remonato
  • 248
  • 2
  • 12
1
vote
1 answer

Why do quasi newton methods such as DFP and BFGS have poor performance on ill-conditionned problem, even if quadratic

I've been reading in the litterature that quasi newton methods such as DFP and BFGS have poor performance on ill-conditionned problems, but I don't understand the reason of it. I have been trying to use these methods on a quadratic problem that is…
Kathryn Schutte
  • 95
  • 1
  • 1
  • 6