[英]FsPlot for osx sierra
I have got an error message with the following code: (example code from sudipta mukherjee) 我收到带有以下代码的错误消息:(来自sudipta mukherjee的示例代码)
#load "./packages/FsPlot.0.6.6/FsPlotBootstrap.fsx"
open FsPlot.Highcharts.Charting
// Logistic Regression
let z = [for i in -10. .. 10. -> (i,1./(1.+exp -i))]
z
|> Chart.Spline
|> Chart.WithTitle "Sigmoid Function"
|> Chart.WithName "g(z)"
When I execute the code, I have got an error message in FSI: 执行代码时,我在FSI中收到一条错误消息:
Loading /eUSB/sync/fsharp/packages/FsPlot.0.6.6/FsPlotBootstrap.fsx]
namespace FSI_0008
System.ComponentModel.Win32Exception: ApplicationName='/eUSB/sync/fsharp/packages/FsPlot.0.6.6/./tools/chromedriver.exe',
CommandLine='--port=53810', CurrentDirectory='', Native error= Access denied
at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process p
rocess) <0x11eab6f10 + 0x006f3> in <filename unknown>:0
Stopped due to error
It seems the error is win32 related and FsPlot doesn't support OSX. 似乎错误与Win32相关,并且FsPlot不支持OSX。
Please feel free to advise. 请随时提出建议。 What I should do to fix the error?
我应该怎么做才能纠正错误?
Migrated source code to XPlot (part of FsLab package), it is running smoothly. 已将源代码迁移到XPlot(FsLab软件包的一部分),运行平稳。
#load "./packages/FsLab.1.0.2/FsLab.fsx"
open XPlot.GoogleCharts
// Logistic Regression
let z = [for i in -10. .. 10. -> (i,1./(1.+exp -i))]
let options =
Options
( title = "Sigmoid Function", curveType = "function",
legend = Legend(position = "bottom") )
[z]
|> Chart.Line
|> Chart.WithOptions options
|> Chart.WithLabels ["g(z)"]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.