Thread Subject: How to generate randomized weights for network topology?

Subject: How to generate randomized weights for network topology?

From: Marat

Date: 20 May, 2009 14:00:20

Message: 1 of 7

Hi all!
I need some help in generating values based on co-ordinates. The values are meant as weights for network. For e.g. for nodes 1->7 it is 23, then for 7->1 should also be 23. Similarly for a topology of size 20, I want to generate the weights for several nodes. Of course, some of the links can have 0s. Is this possible in matlab? Can someone please point out?

Thanks

Subject: How to generate randomized weights for network topology?

From: Greg Heath

Date: 21 May, 2009 08:15:51

Message: 2 of 7

On May 20, 10:00 am, "Marat " <nemesis_...@yahoo.com> wrote:
> Hi all!
> I need some help in generating values based on co-ordinates. The values a=
re meant as weights for network. For e.g. for nodes 1->7 it is 23, then for=
 7->1 should also be 23. Similarly for a topology of size 20,

I dom't understand what you mean. Your "example" makes no sense to me.

>I want to generate the weights for several nodes. Of course, some of the l=
inks > can have 0s. Is this possible in matlab? Can someone please point ou=
t?

Which neural networks? Some (e.g., NEWFF) generate their own random
initial weights.

Need more info.

Greg

Subject: How to generate randomized weights for network topology?

From: Greg Heath

Date: 21 May, 2009 08:17:02

Message: 3 of 7

On May 20, 10:00 am, "Marat " <nemesis_...@yahoo.com> wrote:
> Hi all!
> I need some help in generating values based on co-ordinates. The values a=
re meant as weights for network. For e.g. for nodes 1->7 it is 23, then for=
 7->1 should also be 23. Similarly for a topology of size 20, I want to gen=
erate the weights for several nodes. Of course, some of the links can have =
0s. Is this possible in matlab? Can someone please point out?
>
> Thanks

doc init
help init

Hope this helps.

Greg

Subject: How to generate randomized weights for network topology?

From: Marat

Date: 22 May, 2009 02:48:01

Message: 4 of 7

My apologies for not being clear. I have a network topology of 3 nodes, and I need to have weights for the links between nodes thats is of this pattern:

0 10 4
10 0 10
4 10 0

This represents the weights between nodes, say between nodes 1 and 2 is 20, and since it is bi-directional the weights between nodes 2 and 1 is also 20. I need help in generating such weights for larger number of nodes.

Thanks you for your time.

Subject: How to generate randomized weights for network topology?

From: Greg Heath

Date: 22 May, 2009 10:23:39

Message: 5 of 7

On May 21, 10:48 pm, "Marat " <nemesis_...@yahoo.com> wrote:
> My apologies for not being clear. I have a network topology of 3 nodes, and I need to have weights for the links between nodes thats is of this pattern:
>
> 0   10   4
> 10  0   10
> 4   10   0  
>
> This represents the weights between nodes, say between nodes 1 and 2 is 20, and since it is bi-directional  the weights between nodes 2 and 1 is also 20. I need help in generating such weights for larger number of nodes.
>
> Thanks you for your time.

You are still not clear.

What type of net do you have?

For example, an I-H-O FF MLP can be created using
net = newff(p,t,H);
Modifiable weights are contained in net.IW,net.LW and net.b.

Still need more info.

Greg

Subject: How to generate randomized weights for network topology?

From: Marat

Date: 22 May, 2009 12:48:02

Message: 6 of 7

It is a static network obtained using a separate program, not matlab. The computer network topology is already present. It does not denote neural networks or any other similar types.

I am just looking for a way to generate the weights representing Quality of service values.

Thanks again.

Subject: How to generate randomized weights for network topology?

From: Alan B

Date: 22 May, 2009 14:32:01

Message: 7 of 7

"Marat " <nemesis_810@yahoo.com> wrote in message <gv66u2$q8r$1@fred.mathworks.com>...
> It is a static network obtained using a separate program, not matlab. The computer network topology is already present. It does not denote neural networks or any other similar types.
>
> I am just looking for a way to generate the weights representing Quality of service values.
>
> Thanks again.

If I understand correctly, you can do this:

a = floor(rand(3)*10)
a = triu(a) + triu(a,1)'

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
random values Marat 20 May, 2009 10:04:02
topology Marat 20 May, 2009 10:04:02
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com