Displaying 10 results from an estimated 10 matches for "z_g".
Did you mean:
z_
2012 Dec 18
1
multi dimensional optim problem
...ral network problem. I would like to optimize coefficients that are currently stored in a matrix
Y=270 x 1
X= 27- x 14
b1= 10x14
b2= 11x1
V= 10 x 14 set of prior variances.
I have the following function:
posterior.mode1=function(y,X,b_0,b2,V) {
log.like=function(b1) {
a_g=compute(b1)
z_g=tanh(a_g);
z_g=cbind(1,z_g)
p=softmax(z_g%*%b2);
a=sum(y*log(p)+(1-y)*log(1-p));
return(a);
}
compute=function(b1) {
a_g=NULL;
for(i in 1:nrow(b1)){
a_g=cbind(a_g,X%*%b1[i,])
}
return(a_g);
}
log.posterior=function(b1) {
-log.like(b1)+1/2*t(as.vec...
2016 Apr 11
1
[PATCH] RFC: php: support PHP 7
...(return_value, zend_register_resource(g, res_guestfs_h));
+#else
ZEND_REGISTER_RESOURCE (return_value, g, res_guestfs_h);
+#endif
}
PHP_FUNCTION (guestfs_last_error)
@@ -204,15 +251,15 @@ PHP_FUNCTION (guestfs_last_error)
RETURN_FALSE;
}
- ZEND_FETCH_RESOURCE (g, guestfs_h *, &z_g, -1, PHP_GUESTFS_HANDLE_RES_NAME,
- res_guestfs_h);
+ GUESTFS_ZEND_FETCH_RESOURCE (g, guestfs_h *, z_g,
+ PHP_GUESTFS_HANDLE_RES_NAME, res_guestfs_h);
if (g == NULL) {
RETURN_FALSE;
}
const char *err = guestfs_last_error (g);
i...
1997 Jul 24
0
Security hole in mgetty+sendfax
...------
begin 644 faxq+faxrunq.tar.gz
M''XL( (RYUS, ^U::UL;.;*>K_:OJ AGL!.,+Y#DQ,290QC(,$,@"^3LSC-D
MH7''+=@_M;M.MAGB3/;]]JTI2WVP89F8W^\5Z$FRW2B6I5)>W2CUT/EU_\Q]N
MG7;[^>8F? , &YTN?P(\,Y\ SY\_W\"_&\^?O>AV-S:> ^" %^UOH/V?7ABU
M)%9.!/#-2$;J7KID,/T:Z_G*;>51Z](+6O&XNE)=@2%J TRC<!0Y$^ GOG<E
M0?C3:P%A!&+B>/ZU6(-X''-["K^%E#+>.I[Q@!%X :BPA3-0T47"=R$0R@Y.=
MG9,>_&]]I4'',U[V@LKF^ 2]?M-HO6MU-V FGL\@;C174=QK0>?ER$][B2<#W
MH8R0+;+8V_[;^<G[HZ.#?BN)HU8\#4._A;RRCO.C#Z>ESA:N8Q02 UZ$''(...
2013 Jan 24
3
[REVIEW ONLY] Mountable patches
These 3 patches implement support for APIs which must accept a mountable, but
don't update apis which must return mountables.
Matt
2017 Oct 04
0
[PATCH 2/9] ocaml: Replace pattern matching { field = field } with { field }.
...fun { name = shortname; style = ret, args, optargs as style;
- c_function = c_function; c_optarg_prefix = c_optarg_prefix } ->
+ c_function; c_optarg_prefix } ->
pr "PHP_FUNCTION (guestfs_%s)\n" shortname;
pr "{\n";
pr " zval *z_g;\n";
diff --git a/generator/python.ml b/generator/python.ml
index 331367696..796e26aa5 100644
--- a/generator/python.ml
+++ b/generator/python.ml
@@ -121,7 +121,7 @@ extern char *guestfs_int_py_asstring (PyObject *obj);
pr "\n";
List.iter (
- fun { name = name; c_name = c_...
2013 Feb 07
12
[PATCH 01/12] generator: Add new Mountable argument type
...ble n | Pathname n | Dev_or_Path n
| FileIn n | FileOut n | BufferIn n | Key n -> "s"
| OptString n -> "s!"
| StringList n | DeviceList n -> "a"
@@ -260,7 +260,7 @@ PHP_FUNCTION (guestfs_last_error)
pr " &z_g";
List.iter (
function
- | String n | Device n | Pathname n | Dev_or_Path n
+ | String n | Device n | Mountable n | Pathname n | Dev_or_Path n
| FileIn n | FileOut n | BufferIn n | Key n
| OptString n ->
pr ", &%s, &%...
2017 Oct 04
11
[PATCH 0/9] build: Require OCaml >= 4.02.
Per my previous email:
https://www.redhat.com/archives/libguestfs/2017-September/msg00203.html
I'd like to talk about requiring a more modern version of the OCaml
compiler.
These commits show some of the code changes which would be possible
with OCaml >= 3.12 [which it turns out we already require by accident]
and also with OCaml >= 4.02. The latter is my favoured option.
Rich.
2017 Apr 21
0
[PATCH 1/2] generator: Simplify the handling of string parameters.
...lenameList n -> "a"
+ | StringList (_, n) -> "a"
| Bool n -> "b"
| Int n | Int64 n -> "l"
| Pointer _ -> ""
@@ -365,12 +358,11 @@ PHP_FUNCTION (guestfs_last_error)
pr " &z_g";
List.iter (
function
- | String n | Device n | Mountable n | Pathname n
- | Dev_or_Path n | Mountable_or_Path n
- | FileIn n | FileOut n | BufferIn n | Key n
- | OptString n | GUID n ->
+ | String (_, n)
+ | BufferIn n
+ | O...
2017 Apr 21
4
[PATCH 0/2] generator: Simplify the handling of string parameters.
Very large but mechanical change to the generator.
Rich.
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...@K6KCnB7ZIQZ
z9 at 5aPu~OS2Mo3!dO(`@`4mJ<2l>93t2I44sY#<CCL&Y0-rMK9dWS8VmM>(%e`mZGc
zvzS|_r9ibVUy{v3$Y!N53?Uh(ap!#o4^QXc=c@=>Nxvo46S+O*Tr#}u2w at i5HXtG(
z&8SP^kqmqUWom$A3mVezq1Zbg(C*1{MDeP?JQ`q)(6G7*tFI<wp<p`t!QJV4uMyfn
z(mD^#4FfWG9^}r0-gip+{i4DiOxoB<vi(4Ptt9)PYN2@@d$z_gUuzws79H3&V#z<0
ztSpkp^epA*w)Pt>y+z+96WX8^xEj5{M>7W^au<=!O at Xy~LAL1Wl at vVA4c_MA^4!<l
zz)x&kWJJM#bAw0flRM;zdC at SJ>yt^B6q(qmA9K;R>jk+^j7#D+H*SZBbGWe6wRGcl
z>IIFxI432!!NE%CD=C;$lEY$ONeGGX at CQ0Q_3#9GCdrKWN=m_uAdBOQ?{{k at gobZV
zMwmnr&fKw1QnRwMt7PFwEQ~9)ZPR``a...