lightninglarry
lightninglarry
anyone have ideas on how to get the playersgroup to work in single game format? for Fanduel?
@Scottw1105 can you check this on Fanduel? This seems to work on DK, but i dont think it completely works for FD. snippet: NORBgroup = PlayersGroup(optimizer.player_pool.get_players('69236-42104', '69236-14211'), max_from_group=1) optimizer.add_players_group(NORBgroup) #ids...
how could one go about forcing a certain position into that UTIL spot? like only allow C/1B and OF only in all lineups?
did you find an outcome @doublec1985
Not sure which version @DimaKudosh , how can i tell? I just did this sample run from Fanduel(used an csv from last season where i changed 2 rbs from the...
most of them are just their fppg on the season, although i changed chubb, mccaffrey, davis, and hunt just to test to see if it would put rbs from same...
@DimaKudosh from pydfs_lineup_optimizer import get_optimizer, Site, Sport, CSVLineupExporter, PositionsStack, PlayersGroup class CustomExporter(CSVLineupExporter): @staticmethod def render_player(player): result = f'{player.id}:{player.full_name}' if player.lineup_position != 'UTIL': result += f' - {player.lineup_position}' return result optimizer...
how do you i know @DimaKudosh . im a noob at this. Do i just re run the install pydfs line again at the top?
3.4.0 How do i run the 3.5 latest version? again im a noob and appreciate your help.
awesome @DimaKudosh was able to update, now with the same above code the lineups dont come through, but this error. GenerateLineupException: Can't generate lineups. Following constraints are not valid: max_from_one_team_MIN,max_from_one_team_DET,max_from_one_team_CAR,max_from_one_team_LV