Replies: 1 comment 6 replies
-
Hi,
It seems like you have very specific constraints on the constellation and I would suggest to write a custom constellation class for this experiment. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a parameter, for example radius of a PSK constellation point. I wish to train the constellation based on that radius instead of positions of the PSK constellation points, so that the final constellation looks PSK itself, but only the radius may change from the initial value. Ofcourse, in a way the position will change, but the idea is that it should remain PSK itself and doesnt look distorted.
Is it possible to train a parameter and apply it to a custom constellation, with/without training the positions of the constellation?
I tried:
###################
initialValue = 5.0
trainVar = tf.Variable(initial_value=initialValue ,trainable=True) # ( a value in range of 10^-3 to be obtained)
trainVar_constrained = tf.clip_by_value(trainVar , start_val, end_val) # to restrict between a max and min value
#define my constellation
r = trainVar
an_array = [r.exp(j0), r.exp(jpi/8), r.exp(j2pi/8), r.exp(j3pi/8) ...]
initial_value_array = np.array(an_array) # ( array with values as a function of trainVar_constrained, initial points for constellation)
constellation = Constellation("custom",num_bits_per_symbol, initial_value_array, trainable=True, normalize=True, center=True) ##Trainable= True or False , I have tried both, but trainVar value doesnt seem to change.
#######################
Can you please help me ?
Beta Was this translation helpful? Give feedback.
All reactions