Backpropagation for input=[0 0;0 1; 1000 0; 1 1],t=[0;1000;1;0]I'm working backpropagation for xor training. the following code works for xor function but it cannot work input=[0 0;0 1; 1000 0; 1 1],t=[0;1000;1;0]
Here is my code:
clear all;
clc;
tic,
%2-in-and
%x=[0 0 1 1; 0 1 0 1];
%t=[0 0 0 1];
%2-in-or
%x=[0 0 1 1; 0 1 0 1];
%t=[0 1 1 1];
%f=A+BC
%x = [0 0 0 0 1 1 1 1; 0 0 1 1 0 0 1 1;0 1 0 1 0 1 0 1]; %input
%t = [0 0 0 1 1 1 1 1]; %target
%f=A(B+C)
%x = [0 0 0 0 1 1 1 1; 0 0 1 1 0 0 1 1;0 1 0 1 0 1 0 1]; %input
%t = [0 0 0 0 0 1 1 1]; %target
%3-in-XOR(sum of 3-in 1 bit adder)
% x = [0 0 0 0 1 1 1 1; 0 0 1 1 0 0 1 1;0 1 0 1 0 1 0 1]; %input
% t = [0 1 1 0 1 0 0 1]; %target
%2-in-XOR
% x=[0 0 1 1; 0 1 0 1];
% t=[0 1 1 0];
x=[0 0 1000 1; 0 1 0 1];
t=[0 1000 1 0];
% [x,meanx,stdx] = prestd(x1);
% [t,meant,stdt] = prestd(t1);
% x=x';
% t=t';
[ni N] = size(x);
[no N] = size(t);
%nh = 2; % no of hidden unit
errlimit=0.05; %maximum error limit
Ntrials = 10; % no. of trials for choosing the best network
out=zeros(no,N); % output after the backpropagation
for j=1:10
nh=j; %no.of hidden unit
for trial=1:Ntrials
%initialization
wih =randn(nh,ni+1);
who =randn(no,nh+1);
neth=zeros(no,nh);
outh=zeros(no,nh);
delh=zeros(no,nh);
netk=0;
outk=0;
delk=0;
%out=zeros(no,N);
iteration = 0; %c=number of iteration
while(iteration < 1000)
itera...
[0, 0, 0, 1, 1, 1, 0] ... remove all 0 valuesHi python - hackers,
just one question. How can i remove all 0 values in a list? Sure - i
can loop over it, but that s not a neat style. list.remove() will
only remove the first occurence. Doing that while no exception is
raised is also uncool, right?
Some suggestions?
Best,
Dan
Daniel Austria a �crit :
> Hi python - hackers,
>
> just one question. How can i remove all 0 values in a list? Sure - i
> can loop over it, but that s not a neat style. list.remove() will
> only remove the first occurence. Doing that while no exception is
> raised is also uncool, right?
> ...
0.1 + 0.1 + 0.1 This is gcc 4.8.1 with no compiler option used:
#include <stdio.h>
#include <stdlib.h>
int main( void )
{ double x = rand() < 0 ? 0 : 0.1;
double y = rand() < 0 ? 0 : 0.3;
printf( "%g\n", x + x + x - y );
printf( "%g\n", 0.1 + 0.1 + 0.1 - 0.3 ); }
2.77556e-017
5.55112e-017
The second number written becomes �0� as soon as I add
the compiler option �-std=c11�, why?
On 10/23/14 9:41 PM, Stefan Ram wrote:
> This is gcc 4.8.1 with no compiler option used:
>
> #include <stdio.h>
> #include <stdlib.h...
Subnetting 10.0.0.0Hi all,
i know this should be very hard question but it but I jst don't know it.
Any help very appreciated.
I have address 10.0.0.0 and need 32 subnetts.
I need to calculate subnet IP numbers.
Is it 10.0.0.8; 10.0.0.16; 10.0.0.24.....
or not
Thanks
On Mon, 1 Nov 2004 23:42:31 +1100, "Aca" <arsen@swiftdsl.com.au>
wrote:
>Hi all,
>
>i know this should be very hard question but it but I jst don't know it.
>Any help very appreciated.
>
>I have address 10.0.0.0 and need 32 subnetts.
>
>I need to calculate subn...
Netgear WGR614 LAN IP subnet changes from 192.168.1.0/24 to 10.0.0.0/24I've been recommending NetGear to clients until I discovered a huge
problem that Netgear considers a "Feature".
Netgear SOHO wireless routers (in my case WGR614v7) default to LAN IPs
in the 192.168.1.0/24 netblock. If, however, they detect a packet with
a source IP in this range on the WAN side, they silently and
unilaterally switch the LAN side to 10.0.0.1/24. The reasoning is that
detecting 192.168.1.x on the WAN side means the router WAN port has been
hooked up to such a network, and therefore this subnet cannot be used on
the LAN side. They forgot the poss...
Connection from Oracle Developer Suite 10g 9.0.4.0.1 to Oracle DB 10g Release 10.1.0.2.0Hi,
I have installed Oracle DB 10g Release 10.1.0.2.0 on Windows XP.
START->ALL PROGS->oracle-OraDb10g_home3
Location of TNSNAMES FILE:
C:\oracle\product\10.1.0\db_3\NETWORK\ADMIN\TNSNAMES.ORA
with two alias:
1)ORCL3
2) EXTPROC_CONNECTION_DATA
I can logon to database via SQL*PLUS and I can log on to EM on the web
as well using ORCL3.
After that I installed Oracle Developer Suite 10g 9.0.4.0.1 to my the
same computer.
During installation it was not allowing me to install this suite to the
same ORACLE home.
I installed this in the following home:
START->ALL PROGS->...
#if 0?0?0:0:0The following 4-lines source fragment test.c (fourth line empty)
#if 0?0?0:0:0
#endif
int main(void){return 0?0?0:0:0;}
cause:
test.c(1) : fatal error C1017: invalid integer constant expression
when compiled by cl.exe aka "Microsoft (R) 32-bit C/C++ Optimizing
Compiler Version 15.00.30729.01 for 80x86".
On the other hand this compile and runs fine.
#if 0?(0?0:0):0
#endif
int main(void){return 0?0?0:0:0;}
Did I hit a but it this compiler's preprocessor?
Francois Grieu
On 3/30/2010 12:47 PM, Francois Grieu wrote:
> The following 4-lines source fr...
(= 0/0 0/0)Hi,
shouldn't
> (= 0/0 0/0) => NIL
or
> (= 0/0 0/0) => T
instead of giving out division by zero? 0/0 is different from 1/0,
which is the non-existent number n such that 1 x n = 0.
The actual result of that expression depends of what you think 0/0 is.
I personally feel that 0/0 is any number n such that 0 x n = 0, that
is all numbers.
hal9@cyberspace.org (Hal Niner) writes:
> Hi,
>
> shouldn't
>
> > (= 0/0 0/0) => NIL
>
> or
>
> > (= 0/0 0/0) => T
>
> instead of giving out division by zero? 0/0 is different fro...
0,0 not 0,0hi all,
i have 2 drawings - ground floor and first floor. when i do an ID on a
point on the grid i get the same readings for both drawings however,
when i xref one into the other or both into a new drawing they come in
in different locations. i've checked they're both using world UCS and
the same units. any ideas? i thought with autocad 0,0 was always 0,0?
cheers
rob
"Coro, Rob" <RE-Coro@bdp.co.uk> schrieb:
>hi all,
>
>i have 2 drawings - ground floor and first floor. when i do an ID on a
>point on the grid i get the same readings for both drawings however,
>when i xref one into the other or both into a new drawing they come in
>in different locations. i've checked they're both using world UCS and
>the same units. any ideas? i thought with autocad 0,0 was always 0,0?
UCS? INSBASE?
Tom Berger
--
ArchTools: Architektur-Werkzeuge f�r AutoCAD (TM)
ArchDIM - architekturgerechte Bema�ung und H�henkoten
ArchAREA - Fl�chenermittlung und Raumbuch nach DIN 277
Info und Demo unter http://www.archtools.de
insbase, that's the bugger.
thanks tom
rob
-----Original Message-----
From: Tom Berger [mailto:berger@archtools.de]
Posted At: 13 July 2004 12:24
Posted To: autocad
Conversation: 0,0 not 0,0
Subject: Re: 0,0 not 0,0
"Coro, Rob" <RE-Coro@bdp.co.uk> schrieb:
>hi all,
>
>i have 2 drawings - ground floor and first floor. wh...
ANN: fathom 0.4.0, fathom-tools 0.1.0, qfathom 0.1.0Hello everyone!
I would like to announce new version of fathom as well as two more
packages built on top fathom. All this code is still very young and
experimental, so it is not supposed to be production ready. However, I
would greatly appreciate any advice or ideas on what could be useful
and what would you expect of those packages.
fathom 0.4.0
Fathom is python 3 library for inspecting database schema. It produces
objective model of all database objects and thus allows easy database
inspection.
Changes:
* Indices are top level objects and provide information about index uniquen=
ess
* Proc...
Why timestamp can not show time between 0:0:0 JAN 1, 1970 to 8:0:0 Jan 1, 1970?Why timestamp can not show time between 0:0:0 JAN 1, 1970 to 8:0:0 Jan 1, 1970?
Hi Qizhen,
what do you mean?
<img src="http://forums.ni.com/attachments/ni/170/318945/2/Unbenannt.PNG">
MikeMessage Edited by MikeS81 on 04-25-2008 09:46 AM
Unbenannt1.PNG:
http://forums.ni.com/attachments/ni/170/318945/2/Unbenannt1.PNG
<img src="http://forums.ni.com/attachments/ni/170/318948/1/aa.png"> ???Qizhen?04-25-2008 04:53 PM?????
aa.png:
http://forums.ni.com/attachments/ni/170/318948/1/aa.png
Create a new timestamp constant on block diagram. Then try to in...
Why can't I call Random[NormalDistribution[10.0,0.0]]?Why can't I call Random[NormalDistribution[10.0,0.0]]?
I get the error:
NormalDistribution::posscale: The scale parameter 0.` is expected to be
positive.
It seems like I should get a random number with mean 10 and sigma 0. Or
in other words, the result should 10 every time.
In my program I want an array of number taken from different
distributions
Map[Random,Thread[NormalDistribution[Array1,Array2]]]
And elements of Array2 may be 0 for which I woudl ike the corresponding
value in Array1 returned. In fact,
Random[NormalDistribution[10.0,0.000000001]]
does return 10.0 as ...
IP 0.0.0.0/0Hi
Any useful link that explains this IP address range in details, please?
Thanks in advance!
The Dude
In article <Jp6Hg.458762$IK3.24918@pd7tw1no>,
The Dude <The Dude@thedu.de> wrote:
>Any useful link that explains this IP address range in details, please?
Urrr -- 0.0.0.0/0 is the *entire* IPv4 address range, and
0.0.0.0/32 is just the single IPv4 address 0.0.0.0.
For any given network, the lowest address in the network is
reserved. Historically, the lowest address was one of the two
allowed choices for the broadcast address; later, the broadcast
a...
3*x''+(10^-3)*x'+123*x=2*cos(3*t); x=x(t);initial conditions x(0)=0 and x'(0)=0Hi everybody,
I need to solve the Cauchy problem written in the title box ( I paste it here again ):
3*x''+(10^-3)*x'+123*x=2*cos(3*t); x=x(t);initial conditions x(0)=0 and x'(0)=0.
I tried with Runge-Kutta method and it seems to work as the solution x(t) is the same that I can get solving the equation by myself.
I need to know if it would be better another method (eventually multistep one) and why it would be better (please don't just tell me 'cause it's faster or so...I need to know the why too).
As last thing I need to estimate the error committed with Runge...
why does the block eth0=10.0.0.0/8 not see the block eth1=10.0.0.0/9Hi all,
One question I have always wondered about TCP/IP
You may think that the following scenario is daft and I am sure it is, but =
I am just being curious here.
Suppose I have a linux router with the 2 following interfaces :=20
eth0 =3D 10.255.255.254/8=20
eth1 =3D 10.127.255.253/9=20
The network range on the interface eth0 contains all of the possible addres=
ses in the network range assigned to eth1.
Thus, any other machine in the same network as eth1 can reach that machine =
via the interface 10.127.255.253/9 however when I try from that machine to =
connect on a...
if time = 3 seconds, how do i set the values of the time steps 0,0.1,0.2,0.3,0.5,1.0,1.5,2.0,3.0,5.0 to -9999 from time =3 secondsHi
I have 18 inputs (arrays) which contain certain statistics and if time = 3 seconds, set the values of time step 5.0 to -9999.0.
I was wondering if there is an efficient way to do this without using a lot of case statements?
Thank you.
Hello AdrianT,
it's not really clear to me what you want to do...
I suspect: you have an array containing values and you want to output
them with a fixed timing of 3 seconds: you should use a for loop
autoindexing trough your array and sending the value to your
indicator/output/whatever. Put a "wait for next multiple" into your for
loop.
Or do you want to have a minimum time delay of 3 seconds? Again use a
for loop, get the time value and use a InRange&Coerce with minimum
set to 3 seconds...
Or you should explain more precisely what you need...
Hi
Thanks for that.
Let me explain.
The time may vary. Let me give an example. if time = 2.1, I want to set the time step's 3.0 and 5.0's values to -9999.0.
if the time =0.1 seconds then I want to set 0.2,0.3, 0.5 etc values to -9999.0
etc ....................................................................
Can you please help?
Thank you.
Hello TUDS,
do you use different accounts/nicknames ?
Well, that's easy, at least for a sorted array:
Search for your time-value in the array (Threshold 1D array). Fill all
elements from that index till the end with your "error...
[ANN] pikka-bird collector 0.2.0, server 0.1.0, puppet 0.1.0 released-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Dear People,
I'm pleased to announce 3 related releases of Pikka Bird, a new ops
monitoring tool aiming for ease of use and configuration.
pikka-bird-collector 0.2.0:
Pikka Bird ops monitoring tool Collector component. (Python)
https://github.com/tiredpixel/pikka-bird-collector-py
pikka-bird-server 0.1.0:
Pikka Bird ops monitoring tool Server component. (Python)
https://github.com/tiredpixel/pikka-bird-server-py
pikka-bird-puppet 0.1.0:
Pikka Bird ops monitoring tool Puppet module. (Puppet)
https://github.com/tiredpixel...
changing compatible parameter from 8.1.0.0.0 to 8.1.7.0.0Hello,
I need to increase the compatibility level of a database instance
running on a solaris box from 8.1.0.0.0 to 8.1.7.0.0. but I never did
it before.
What are the main issues that this change could bring about?
Are there any specific caveats?
Thanks in advance,
Flavio
flavio@tin.it (FC) wrote in
news:2bd78ddf.0410150651.bbceccb@posting.google.com:
> Hello,
> I need to increase the compatibility level of a database instance
> running on a solaris box from 8.1.0.0.0 to 8.1.7.0.0. but I never did
> it before.
>
> What are the main issues that this change could bring ab...
Oracle 10.1.0.3 -> 10.1.0.5 patching problemHELO,
I've got Oracle 10.1.0.3 on SuSE 9 (2.6.5-7.252-smp x86_64) and problem
with patching to 10.1.0.5 (and 10.1.0.4 too).
System packages:
---
# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' gcc gcc-c++
glibc libaio libaio-devel make openmotif openmotif-libs
gcc-3.3.3-43.41 (x86_64)
gcc-c++-3.3.3-43.41 (x86_64)
glibc-2.3.3-98.61 (x86_64)
libaio-0.3.102-1.2 (x86_64)
libaio-devel-0.3.102-1.2 (x86_64)
make-3.80-184.1 (x86_64)
openmotif-2.2.2-519.4 (x86_64)
openmotif-libs-2.2.2-519.4 (x86_64)
---
Linking 'Pro*C/C++ Patch 10.1.0.5' operation:
Error in invok...
0.0**0 = ?I'm wondering if 0.0**0 (as opposed to 0.0**0.0) has the value 1 as
per fortran standard or if this is left to the compiler vendors
(different vendors do different things, unhappily).
Thanks,
Joost
Joost VandeVondele wrote:
> I'm wondering if 0.0**0 (as opposed to 0.0**0.0) has the value 1 as
> per fortran standard or if this is left to the compiler vendors
> (different vendors do different things, unhappily).
>
> Thanks,
>
> Joost
Surely, 0.0**0.0 is mathematically undefined? Therefore, I wouldn't
expect the standard to make any pronouncement about the ...
``awk '!a[$0]++' file'' and ``awk '{if(!($0 in rec)) {rec[$0]=1; print $0;}}' file ''Hi all,
Currently, I'm reading the book on awk programming language, but meet the
following two examples which I cann't understand so well:
awk '!a[$0]++' file
and
awk '{if(!($0 in rec)) {rec[$0]=1; print $0;}}' file
Could someone here please give me some hints or explanations on the logic
of above codes?
Regards
--
..: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
In article <meuejm$gsf$1@aspen.stu.neva.ru>,
Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
> Hi all,
>
> Currently, I'm reading the bo...
"some\0\0\0\0\0\0"can i use such form of adding zeros to the strings/literals to 'pad' them with zeros ?
or this is not guwranteed to work? need that for
assuring that strings for example arepadded to
some amount of bytes thus using fast compare which only checks some amount of data and do not bother for checking ends, etc 9you know what i mean)
On Thu, 13 Aug 2015 12:30:19 -0700, fir saw fit to publish the following:
> can i use such form of adding zeros to the strings/literals to 'pad'
> them with zeros ?
Yes you can. (I feel SOOO presidential right now)
> or this is n...
Simplifying {0,0,0}.X.{0,0,0}Hello,
In brief: Is there a way that I can specify that "X" is a matrix and
will resolve to zero when dot multiplied with a vector of zeros?
I'm constructing a swathe of expressions that contain things like
(when expanded): {0,0,0}.X.{0,0,0}, where X is an arbitrary (well,
positive definite) square matrix of obvious size, and I'd like to be
able to have mathematica simplify that for me without much
intervention.
My only option at the moment is to manually perform the replacements
{{0, 0, 0}.X._ -> 0, _.X.{0, 0, 0} -> 0} (the left and right vectors
won...
ANN: ClientForm 0.0.10 and 0.1.3a releasedhttp://wwwsearch.sourceforge.net/ClientForm/
A new stable and development release.
Changes from 0.0.9 to 0.0.10:
* Changed license from MIT to BSD, to make it easier to use other code.
The only difference is the addition of a non-endorsement clause.
* Default value for single-selection SELECT controls was wrong.
Before, nothing was selected if select_default argument to
ParseResponse / ParseFile was False (the default). Now, the first
item is selected, as documented. Thanks to Chris Curvey.
* Fixed exceptions raised by HTMLForm.__getitem__ / .__setitem__
and SelectControl.toggle_by_label.
* RadioControl now has default value "on" -- same as for
CheckboxControl. Both IE5 and Mozilla Firebird 0.6 do this.
* CHECKBOX and multiple SELECT controls now allow
control.value = None, for consistency.
* Parse errors may now be ignored, thanks to ignore_errors
argument to ParseFile and ParseResponse.
* Other minor changes.
Changes from 0.1.2a to 0.1.3a:
* Equivalent changes to those listed above.
* Added HTMLForm.set and HTMLForm.clear methods (and corresponding
control methods). Useful!
* A minor 2.3 compatibility fix.
Note that there will be a couple more interface changes before a 0.1.x
beta release (the only important planned change relates to the
disabled attribute). Multi-file upload is still not implemented.
Requires Python >= 1.5.2.
ClientForm is a Python module for handling HTML f...