虚拟环境下的Keras配置文件

时间:2016-10-21 21:30:16

标签: python anaconda keras

我使用通过anaconda分发的Python。我有几个通过conda创建的虚拟环境设置。现在我的问题是,如果我为虚拟环境安装了不同的Keras版本,他们是否会在public static DateTime AddExcludingWeekends(this DateTime dateTime, int nDays) { var wholeWeeks = nDays / 5; //since nDays does not include weekdays every week is considered as 5 days var absDays = Math.Abs(nDays); var remaining = absDays % 5; //results in the number remaining days to add or substract excluding the whole weeks var direction = nDays / absDays;//results in 1 if nDays is posisive or -1 if it's negative while (dateTime.DayOfWeek == DayOfWeek.Saturday || dateTime.DayOfWeek == DayOfWeek.Sunday) dateTime = dateTime.AddDays(direction); //If we are already in a weekend, get out of it while (remaining-- > 0) {//add remaining days... dateTime = dateTime.AddDays(direction); if (dateTime.DayOfWeek == DayOfWeek.Saturday) dateTime = dateTime.AddDays(direction * 2);//...skipping weekends } return dateTime.AddDays(wholeWeeks * 7); //Finally add the whole weeks as 7 days, thus skipping the weekends without checking for DayOfWeek } 使用相同的Keras配置文件?

如果没有,配置文件位于何处?

1 个答案:

答案 0 :(得分:0)

在Keras回购中有a following code fragment我相信这意味着这条路径被硬编码为~/.keras/keras.json

内部