You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
python random seed fixed when running multiple times in the same script #32
when running EGGP multiple times inside a Python script it will reuse the same random seed. Internally, eggp will ask the system seed which is unchanged while Python is running.
importpandasaspdimporteggpdf=pd.read_csv("dataset.csv")
cols_x= [cforcindf1.columnsifc!="target"]
x=df[cols_x].valuesy=df["target"].valuesforiinrange(30):
np.random.seed(i)
reg=eggp.EGGP() # internally it will always use the same seedreg.fit(x, y)
Activity