Category : optimization

I am trying to optimize self.parameters() with torch.optim.adam.Here is the original code: def learning_rate_adjust(self, args): self.learning_rate *= 0.8 self.train_op = torch.optim.Adam(self.parameters(), lr=self.learning_rate, weight_decay=args.l2_reg) but when I run this code,here is the bug: Traceback (most recent call last): File "main.py", line 37, in <module> train(args, loader, train_set_length, test_seq, item_attr_set, [], []) File "E:ACAM24ACAM-model-masterACAM-modelcodetrain.py", line 62, in ..

Read more

I’m currently working with two student colleagues with the optimization package pymoo. We have searched in the documentation but we are still strugling to solve some issues. The main challenge is to define and implement our problem. This problem consist on an optimization of a protein based classifier. Our aim is to minimize the number ..

Read more

I want to find the parameters of a Weibull distribution by minimizing the parameters using Kullbak-Leibler method. I found a code here which did the same thing. I replaced the Normal distributions in the original code by the Weibull distributions. I do not know why I get “Nan” parameters and “Nan” Kullback-Leibler divergence value. Can ..

Read more

I am trying to solve an optimization problem using the optimization module of scipy (differential evolution algorithm). In the simplest case, I want to fit two functions to experimental values. In the range of lower x-values function 1 is used, in the range of higher x-values function 2. The switching between the two functions is ..

Read more

I ran into a problem while creating a virtual screen in kivy. I want the application to create an additional screen that can be scaled. I tested kivy.graphics.rectangle, but drawing 10,000 of these rectangles takes almost half a second (the size of the additional screen is approximately 75% of the area and its average resolution ..

Read more