본문 바로가기

전체 글225

keras Masking Test Definition:Masks a sequence by using a mask value to skip timesteps.For each timestep in the input tensor (dimension #1 in the tensor), if all values in the input tensor at that timestep are equal to mask_value, then the timestep will be masked (skipped) in all downstream layers (as long as they support masking).​But, I want to know the real output from Masking that expected.​Below to see how th.. 2019. 3. 13.
the longest palindromic substring Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example 1:Input: "babad" Output: "bab" Note: "aba" is also a valid answer. Example 2:Input: "cbbd" Output: "bb"​Palindromic 이라는 것은 회기되는 단어를 이야기 한다. 예를들어 "토마토", "스위스" 와 같은 문장이다. 위 문제에서는 가장 긴 회기단어를 추출하라는 것이다. ​Python Solution:class Solution: def longestPalindrome(self, s: str) -> str:.. 2019. 3. 6.
Number of 1 Bits Write a function that takes an unsigned integer and return the number of '1' bits it has (also known as the Hamming weight). Example 1:Input: 00000000000000000000000000001011 Output: 3 Explanation: The input binary string 00000000000000000000000000001011 has a total of three '1' bits. Example 2:Input: 00000000000000000000000010000000 Output: 1 Explanation: The input binary string 000000000000000.. 2019. 1. 24.
Use Tensorboard on Jupyter Notebook without CLI Use Tensorboard in Jupyter Notebook. 1. tensorflow(-gpu) >= 1.3 2. Check python version and Jupyter Notebook python version are same.3. install jupyter-tensorboard pip(3) install jupyter-tensorboard 4. Restart jupyter notebook! [https://pypi.org/project/jupyter-tensorboard/] 2019. 1. 23.
반응형