This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from keras.models import Sequential | |
| model = Sequential() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE OR REPLACE FUNCTION count_max_on_pos(date1 DATE, date2 DATE, id_pos INTEGER) RETURNS INTEGER AS $$ | |
| -- date1, date2 - limits of the time interval | |
| -- id_pos - id of the position we examine | |
| DECLARE num_people_array INTEGER ARRAY; | |
| DECLARE max_on_pos INTEGER := 0; | |
| DECLARE curr_on_pos INTEGER := 0; | |
| DECLARE i INTEGER; | |
| BEGIN | |
| SELECT ARRAY(SELECT coalesce(num_pos,0) - coalesce(num_neg,0) FROM |
NewerOlder