小编dpe*_*per的帖子

使用 3 个月数据集进行多变量时间序列预测

我生成了 3 个月的数据(每一行对应每一天),我想对相同的数据执行多变量时间序列分析:

可用的列是 -

Date    Capacity_booked Total_Bookings  Total_Searches  %Variation
Run Code Online (Sandbox Code Playgroud)

每个日期在数据集中有 1 个条目并且有 3 个月的数据,我想拟合一个多元时间序列模型来预测其他变量。

到目前为止,这是我的尝试,我试图通过阅读文章来实现相同的目标。

我做了同样的 -

df['Date'] = pd.to_datetime(Date , format = '%d/%m/%Y')

data = df.drop(['Date'], axis=1)

data.index = df.Date

from statsmodels.tsa.vector_ar.vecm import coint_johansen
johan_test_temp = data
coint_johansen(johan_test_temp,-1,1).eig



#creating the train and validation set
train = data[:int(0.8*(len(data)))]
valid = data[int(0.8*(len(data))):]

freq=train.index.inferred_freq

from statsmodels.tsa.vector_ar.var_model import VAR

model = VAR(endog=train,freq=train.index.inferred_freq)
model_fit = model.fit()


# make prediction on validation
prediction = model_fit.forecast(model_fit.data, steps=len(valid))

cols = data.columns

pred = pd.DataFrame(index=range(0,len(prediction)),columns=[cols])
    for j …
Run Code Online (Sandbox Code Playgroud)

python machine-learning time-series prediction

13
推荐指数
1
解决办法
1094
查看次数

在 rasa 中训练模型后查找表不起作用

我是拉萨的新手。我正在训练一个模型来使用查找表识别某些实体。我在一个句子中有多个实体,我正在尝试提取它们。

nlu.yml

version: "2.0"
nlu:
- intent: intent_1
  examples : |
    - how many deaths were there last year in [Ohio](Filter-State)?
    - death count of [Florida](Filter-State) this year
    - death count of [Texas](Filter-State) this year
    - what's the death count for this quarter in [CA](Filter-State)?
- lookup: Filter-State
  examples: |
    - Alabama
    - AL
    - Alaska
    - AK
    - Arizona
    - AZ
    - Arkansas
    - AR
    - California
    - CA
    - Colorado
    - CO
    - Connecticut
    - CT
    - Delaware …
Run Code Online (Sandbox Code Playgroud)

rasa-nlu rasa-core rasa

3
推荐指数
1
解决办法
1679
查看次数

更改react-native中顶部导航栏的颜色

我是反应本机新手,正在开发一个登录应用程序。功能完全正常。我想将导航标题的颜色(如图所示)从白色更改为其他颜色。我看了看,但找不到做同样事情的方法。任何人都可以指导我纠正指针以实现相同的目标。

在此输入图像描述

这是我正在使用的 stackNavigation 代码:

const Login = createStackNavigator();
const LoginStack = () => {
  return (
    <Login.Navigator
      initialRouteName="Welcome"
      headerMode="float"
      screenOptions={() => ({
        headerTintColor: AppStyles.colorSet.mainBackgroundColor,
        headerTitleStyle: styles.headerTitleStyle,
        headerRight: () => <View />,  
        cardStyle: { backgroundColor: '#275362', }
      })}
    >
      <Login.Screen name="Login" component={LoginScreen} />
      <Login.Screen
        options={{ headerShown: false }}
        name="Welcome"
        component={WelcomeScreen}
      />
    </Login.Navigator>
  );
};

const styles = StyleSheet.create({
  headerTitleStyle: {
    fontWeight: 'bold',
    textAlign: 'center',
    alignSelf: 'center',
    color: 'red',
    flex: 1,
  },
});
Run Code Online (Sandbox Code Playgroud)

react-native

2
推荐指数
1
解决办法
3198
查看次数