본문 바로가기

전체 글

(9)
What is Classification? 분류란 무엇인가? 본 글은 Fastcampus 온라인 강의, 올인원 패키지 : 딥러닝/인공지능 강의 중, 양서연님께서 강의해주신 '딥러닝 최신 트렌드'를 바탕으로 이해하기 쉽고, 개인적인 공부를 위해 패스트캠퍼스에 문의 후 정리하려는 목적으로 작성되었습니다. 개인적인 의견도 포함하여 작성되기 때문에 틀린 내용도 있을 수 있다는 점 유의 바랍니다. 오류가 있는 부분을 지적해주시면 확인 후 수정하도록 하겠습니다. Classification 이란 무엇인가? 머신러닝 & 딥러닝의 차이점 Training dataset의 규모 차이에 따라 구분 : ML - Small / DL - Large 딥러닝의 경우 End to End로 사진이나 데이터를 넣어 줄 수 있음 반면에, 머신러닝의 경우 사람이 직접 feature를 찾아서 넣어줘야만 ..
[python] codeSignal 문제풀이 (10) 10. Given two strings, find the number of common characters between them. Example) For s1 = "aabcc" and s2 = "adcaa", the output should be commonCharacterCount(s1, s2) = 3. Strings have 3 common characters - 2 "a"s and 1 "c". 1 2 3 4 5 6 def commonCharacterCount(s1, s2): count = 0 common_ch = set(s1) & set(s2) for i in common_ch: count += min(s1.count(i), s2.count(i)) return count 1 2 3 4 5 # so..
[python] codeSignal 문제풀이 (9) 9. Given an array of strings, return another array containing all of its longest strings. Example ) For inputArray = ["aba", "aa", "ad", "vcd", "aba"], the output should be allLongestStrings(inputArray) = ["aba", "vcd", "aba"]. 1 2 3 4 5 6 7 8 9 10 11 def allLongestStrings(inputArray): array_len = [] for i in range(len(inputArray)): array_len.append(len(inputArray[i])) len_max = max(array_len) n..
[python] codeSignal 문제풀이 (7~8) 7. Given a sequence of integers as an array, determine whether it is possible to obtain a strictly increasing sequence by removing no more than one element from the array. Note: sequence a0, a1, ..., an is considered to be a strictly increasing if a0 < a1 < ... < an. Sequence containing only one element is also considered to be strictly increasing. 어떤 수들이 나열되어 있을 때, 그 수열 중에 한 숫자만 빼서 증가 수열이 될 수 있..
[octave] Using Octave tutorial - octavehelp.m 옥타브 튜토리얼! - Tutorial code using octave (Tool similar to Matlab)
[octave] What is the Octave? 옥타브(Octave)는 수치해석용 자유 컴퓨터 소프트웨어로서, MATLAB과 호환성이 높다. 옥타브는 GNU 프로젝트의 하나이다. 옥타브는 매스매티카같은 컴퓨터 대수 체계가 아니라 과학적 계산을 위한 도구이다. 쉽게 말하면, Matlab 프로그램에 대한 GPL(General Public License) , Matlab의 무료버전이라고 생각하면 된다. GNU Octave 위의 Bookmark에서 install이 가능하며, Linux, macOS, Windows 환경 모두 지원한다. 본인은 미래자동차/로봇프로그래밍 class에서, SLAM Example code를 작성하고 돌려보고자 유료인 Matlab 대신하여 octave를 설치 후 사용하였다. Matlab과 문법적으로 완벽하게 일치하지는 않지만 .m 파일..
블로그(Blog)에 소스 코드(code)를 멋지고, 쉽게 넣는 방법! using 'Color Scripter' 티스토리에서 제공하는 코드 블럭(Code Block)을 활용하여 포스팅을 해보았을 때, 너무나도 고딕적이고 가독성도 떨어지게 작성되어 구글링을 하는 도중 좋은 사이트를 찾아 공유하고자 한다. 보기 좋고, 소스 코드를 쉽게 삽입할 수 있는 '컬러 스크립터(Color Scripter)'가 소개 대상이다. 다른 분들께서 많이 사용하시는 SyntaxHighlighter 플러그인 보다 쉽고 편하게 코드를 블로그에 삽입할 수 있다는 장점이 있어서 초보 블로거분들에게 추천드린다. [링크] https://colorscripter.com/ Color Scripter Simple & Flexible Syntax HighLighter colorscripter.com [스타일패키지 = 배경 설정] 본인은 '스타일패키지'를 서..
[python] codeSignal 문제풀이 (4~6) 4. Given an array of integers, find the pair of adjacent elements that has the largest product and return that product. Example) For inputArray = [3, 6, -2, -5, 7, 3], the output should be adjacentElementsProduct(inputArray) = 21. 7 and 3 produce the largest product. 1 2 def adjacentElementsProduct(inputArray): return max([inputArray[i] * inputArray[i+1] for i in range(len(inputArray) -1)]) 5. B..