我正在尝试使用 sklearn 的高斯过程进行时间序列分解。
kernel = ConstantKernel() *
RBF() *
ExpSineSquared(periodicity=7)
Run Code Online (Sandbox Code Playgroud)
有没有办法修复其他参数 periodicity_bounds=(7, 7)
如果我这样做,kernel.hyperparameters我可以看到他们有一个属性fixed=False
我如何将其设置为true?
我将 Azure 机器学习服务与 azureml-sdk python 库一起使用。
我正在使用 azureml.core 版本 1.0.8
我正在关注这个https://docs.microsoft.com/en-us/azure/machine-learning/service/how-to-create-your-first-pipeline教程。
当我使用 Azure 计算资源时,我已经让它工作了。但我想在本地运行它。
我收到以下错误
raise ErrorResponseException(self._deserialize, response)
azureml.pipeline.core._restclients.aeva.models.error_response.ErrorResponseException: (BadRequest) Response status code does not indicate success: 400 (Bad Request).
Trace id: [uuid], message: Can't build command text for [train.py], moduleId [uuid] executionId [id]: Assignment for parameter Target is not specified
Run Code Online (Sandbox Code Playgroud)
我的代码看起来像:
run_config = RunConfiguration()
compute_target = LocalTarget()
run_config.target = LocalTarget()
run_config.environment.python.conda_dependencies = CondaDependencies(conda_dependencies_file_path='environment.yml')
run_config.environment.python.interpreter_path = 'C:/Projects/aml_test/.conda/envs/aml_test_env/python.exe'
run_config.environment.python.user_managed_dependencies = True
run_config.environment.docker.enabled = False
trainStep = PythonScriptStep(
script_name="train.py",
compute_target=compute_target, …Run Code Online (Sandbox Code Playgroud) azure-machine-learning-workbench azure-machine-learning-service
我将时间序列与差距分组。我不想填补空白,尊重分组。
date在每个id.
以下有效,但在我不需要 NaN 的地方给了我零
data.groupby('id').resample('D', on='date').sum()\
.drop('id', axis=1).reset_index()
Run Code Online (Sandbox Code Playgroud)
以下由于某种原因不起作用
data.groupby('id').resample('D', on='date').asfreq()\
.drop('id', axis=1).reset_index()
data.groupby('id').resample('D', on='date').fillna('pad')\
.drop('id', axis=1).reset_index()
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Upsampling from level= or on= selection is not supported, use .set_index(...) to explicitly set index to datetime-like
我尝试使用pandas.Grouperwithset_index多级索引或 single 但它似乎没有对我的日期列进行上采样,所以我得到了连续的日期,或者它不尊重该id列。
Pandas 是 0.23 版本
自己试试:
data = pd.DataFrame({
'id': [1,1,1,2,2,2],
'date': [
datetime(2018, 1, 1),
datetime(2018, 1, 5),
datetime(2018, 1, 10),
datetime(2018, 1, 1),
datetime(2018, 1, 5),
datetime(2018, 1, 10)],
'value': [100, …Run Code Online (Sandbox Code Playgroud) 我有一个事实表和一个日历表。日历表有一个布尔列,表示某一天是否是假期。
我不想创建一个度量:AllSales,它忽略假日上的任何过滤器,但尊重所有其他日历列上的过滤器。请参阅稍后应用的视觉级别过滤器。
除总金额外,以下措施均有效:
AllSales = CALCULATE(SUM(FactSales[Sales]); ALL('Calendar'[Holiday]); ALL('Calendar'[DateKey]))
Run Code Online (Sandbox Code Playgroud)
结果见下图。单独的几周是可以的,因为这些都可以,但请注意年份的总和是错误的。条形聊天显示正确,但矩阵表中的总计错误。由于视觉级别过滤器Calendar[DateKey]删除了 2019 年第一周,AllSales 的总数应为 700,但它仍计入总数中。
总结一下:
Calendar[DateKey] > "2019 year 01 weekCalendar[Holiday] = FalseCalendar[Year], Calendar[Week]如果我删除ALL(Calendar[DateKey])它,就像我的ALL(Calendar[Holiday])过滤器被忽略并AllSales变得相当于Sales原始数据列。
如果您不想使用这里的数据,可以使用两个 M 查询来创建 Calendar 和 FactSales 表。只需通过 DateKey 1:* 单向链接它们即可。
创建两个新查询并将以下代码粘贴到高级编辑器(M 语言编辑器)中的每个查询中
日历查询:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwtNQ1MAQiJR0wB0iBmCFFpalKsTpICoxQFbgl5hSjqTAmqMIEocIIuwpT3CqMDJAcamSA6VCoAiNUBViMMCaowgShAoczTLGqiAUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [DateKey = _t, year …Run Code Online (Sandbox Code Playgroud) 我在Azure中创建了一个新的Function App。我为应用程序服务计划选择了一个消费计划。
创建应用程序后,我现在在资源组中有一个名为“ WestEuropePlan”的新应用程序服务计划。
下件事 IT部门表示“ WestEuropePlan”不是App Service计划的正确命名约定。
我有什么选择。创建功能应用程序时,使用基于消耗的计划时,Im不允许选择或命名现有计划。
我无法重命名自动生成的计划。
在创建功能应用程序之前,我无法手动创建基于消耗的计划。
我该怎么办?我唯一的选择是不使用基于消费的计划,而是创建一个我可以命名的普通应用程序服务计划吗?
我可以从azure CLI或使用ARM模板做什么?
尝试在本地运行 Azure Functions 项目并收到以下错误:
Insufficient memory to continue the execution of the program.
Run Code Online (Sandbox Code Playgroud)
这发生在记录或启动任何内容之前,因此无需调试。
有人知道如何调试这个吗?
我已经删除了所有代码,删除了所有依赖项。剩下的只是一个没有实现的默认计时器函数。它仍然不起作用。
如果我创建一个新的函数项目 func init,一切正常。我看不到不起作用的项目和起作用的项目之间的项目文件、host.json、local.settings.json、function.json 等有任何差异。
我正在考虑重新实现该项目并复制所有代码,但这是唯一的解决方案吗?
python ×2
azure ×1
azure-machine-learning-service ×1
azure-machine-learning-workbench ×1
dax ×1
gaussian ×1
pandas ×1
powerbi ×1
scikit-learn ×1