我有excel表格的数据,我想得到Levenshtein他们之间的距离.我已经尝试导出为文本,从脚本(php)读入,运行Levenshtein(计算Levenshtein距离),再次将其保存为excel.
但我正在寻找一种以编程方式计算VBA中的Levenshtein距离的方法.我该怎么做呢?
我是第一次运行TensorFlow并使用一些示例代码.运行我的代码时出现此错误.有谁知道为什么会这样,以及如何解决它?谢谢!
2017-03-31 02:12:59.346109: W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations.
2017-03-31 02:12:59.346968: W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE2 instructions, but these are available on your machine and could speed up CPU computations.
2017-03-31 02:12:59.346975: W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow libbrary wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
2017-03-31 …Run Code Online (Sandbox Code Playgroud) 预期的输出是正确地拉出大约2000个数据点的ID.我正在检查数据是否与用户输入日期匹配.如果是这种情况,我想在另一张纸上打印事件的ID.理想情况下,我将有一个具有数字ID的输入列表.
当我从控制台或调试器运行代码时,我会得到一系列ID,如:1,2,4,5,6,11,14,166 ......但是,当我从按钮运行时,我始终得到第一个2个数据点.无论哪个领域(日期,时间,大小),我总是得到前2个数据点.
问题出现了,因为如果我在调试器中设置了一个断点,然后按下按钮,代码就可以了.我所要做的就是保持运行(F5)并且代码完美无缺.我认为这告诉我代码编译和工作; 意味着错误不是编译或逻辑错误.
因此,我认为由于竞争条件我遇到了错误.所以,我继续运行doEvents命令.再次,我得到了相同的结果.控制台和调试器正确运行代码,但按钮没有.
Sub ThisBookSource()
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
Application.DisplayStatusBar = False
Start = Now()
Dim masterRow As Integer
Dim myEvents
masterRow = 9
masterRow2 = 9
ActiveWorkbook.Worksheets("Graphs by Source").Activate
myCode = Range("D" & "2").Value
Range("C9:C2290").Clear
Range("T9:U2290").Clear
ActiveWorkbook.Worksheets("Data").Activate
For I = 3 To 2113
If Range("T" & I) = myCode Then
Worksheets("Data").Range("M" & I).Copy
Worksheets("Graphs by Source").Range("C" & masterRow).PasteSpecial xlPasteValues
masterRow = …Run Code Online (Sandbox Code Playgroud) excel ×2
excel-vba ×2
vba ×2
amazon-ec2 ×1
javascript ×1
node.js ×1
python ×1
python-3.x ×1
tensorflow ×1
twilio ×1