Category : python

I have deployed model in aci and it’s in healthy state but when I do post on that rest endpoint it’s giving me a blank dict {} (same script is executing locally). Also when I checked the deployment logs for the same it’s saying PandasError: DataFrame constructor not properly called! but I already accounted this ..

Read more

In my space traders game, I have ‘Datei = namedtuple("Datei", "day year")’ and ‘current’, ‘tiempo’ in the global context, and ‘trader.sdate’ and ‘star.sdate’ within the Trader and Steorra classes all defined as Datei objects. When I check the values of the Datei objects like this, (to determine which trader to process first): def check_time(ship_date: Datei, ..

Read more

the question is: Do you think you can flesh out your own function? I think you can! Let’s give it a go. Flesh out the body of the print_seconds function so that it prints the total amount of seconds given the hours, minutes, and seconds function parameters. Remember that there are 3600 seconds in an ..

Read more

Hello I am working on a convolutional neural network. I need help using variables outside of the class they are made in. the class class YOLO(object): _defaults = { "model_path" : ‘model_data/MOD9.h5’, "model_image_size" : (416, 416), "letterbox_image" : False, … } @classmethod def get_defaults(cls, n): if n in cls._defaults: return cls._defaults[n] else: return "Unrecognized attribute ..

Read more