Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A little help... #1

Closed
xino1010 opened this issue Jan 23, 2019 · 2 comments
Closed

A little help... #1

xino1010 opened this issue Jan 23, 2019 · 2 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@xino1010
Copy link

Dear @off99555
I am interested in applying the permutational layer to my model that consists of:
30 individual features for element A, 30 individual features for elment B and 9 common characteristics.

I would like to train my model using permutational_layer.py

Could you guide me using you project?

Regards

@offchan42
Copy link
Owner

offchan42 commented Jan 23, 2019

For now, you can download the layers.py and permutational_layer.py into your folder and import permutational_layer to use it.
If you want it without much details, use PermutationalModule. But if you want more fine-tuned options, use the individual functions inside that file and compose them.
The example is in the file itself.
To know how to use it, I suggest you run python permutational_layer.py, and look at the bottom section of the code. Compare the result line by line from the code to the output, try to make sense of it and you should learn better how to use the module.

@offchan42
Copy link
Owner

You should see that I use the function repeat_layers a lot. It's the function I wrote myself.
It's simply creating a list of same layers. E.g. when you want 2 dense layers with 16 neurons and 4 neurons respectively, you would write:
repeat_layers(Dense, [16, 4], activation="relu")

You can also write [Dense(16, activation='relu'), Dense(4, activation='relu')] for a more verbose way.

@offchan42 offchan42 self-assigned this Jan 23, 2019
@offchan42 offchan42 added help wanted Extra attention is needed question Further information is requested labels Jan 23, 2019
@xino1010 xino1010 closed this as completed Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants