항상 좋은 강의 잘듣고 있습니다 :) 이상치 제거하고 검증용 세트로 모델 검증하는 과정에서 갑자기 궁금한게 생겨서 질문드립니다..! 이상치 제거한 모델을 실제 test 셋으로 평가 할때 행 수가 맞지 않잖아요..? 그럼 모델 평가가 안되는데 이경우에는 실제 test 세트에서도 인덱스를 제거하고 모델 평가를 하나요?? 만약 그렇다면 그 기준은 어떻게 되나요??
안녕하세요, 선생님. 선생님 강의를 들으면서 비전공자인 제가 개발자로서의 꿈을 갖는데 있어 많은 용기를 얻을 수 있었습니다. 정말 감사합니다!! 그래서 저는 현재 백엔드 개발자가 되기 위해 마음을 먹은 상태이고 '멋쟁이사자처럼 직장인' 버전을 통해 파이썬 기초와 장고 웹 프레임워크를 새벽에.. 공부를 하고 있습니다. 하지만 문제는 현재 다니고 있는 회사를 언제까지 다녀야 하나 라는 생각이 많이 듭니다. 현재 저는 이커머스에 속해있는 스타트업에 비전공자로 근무를 하고 있는데, 선임과의 관계가 좋지 못하고 매일매일 퇴사를 고민하고 있습니다ㅠㅠ 현재 6개월 정도가 되었고 저는 올해까지만 다니고 퇴사하고 개발 공부에 집중하고 싶은데, 이 회사를 제가 1년 정도 다녔을 때 이커머스 도메인(분야)로 어필할 수 있는 장점이 있는것일지 궁금합니다. 즉, 올해 말 퇴사로 8개월정도의 도메인 지식으로도 어필이 괜찮은지 아니면 1년까지 다녀야 하는건지에 대한 고민이 많습니다. 물론 하루하루는 퇴사에 대한 생각이 강해져서요. 개발 공부하는 시간이 많이 없게돼고 남은 시간이 없다는 초조함도 있네요... 선생님의 의견을 듣고 싶습니다! (참고로 저는 내년이면 29살이 됩니다..)
일대일 양방향 관계에서 [17:40] 단점: 프록시 기능의 한계로 지연 로딩으로 설정해도 항상 즉시 로딩됨 (프록시는 뒤에서 설명) 그림 --------------------------------- 그러면 이그림과 비슷한 이것도 마찬가지로 Membe는즉시로딩으로만 가져오나요 ?
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 혹시 루키스님 씨샵강의 맥용 비주얼 스튜디오2019에서도 가능한가요?
일단 본론 부터 말씀드리면 redux devtools 에 action 은 넘어오는데, 넘어온 값이 state 에 가지는 않습니다. 과정을 나열해보자면, user_action 에서 post 로 로그인 정보를 보내고 requset 를 받아와서 그 값을 LoginPage(로그인페이지)에서 onSubmitHandler에서 dispatch 해주는 과정에서는 이상이 없는 것 같습니다. 그래서 redux devtools 에서도 정상적으로 action 이 나오구요, db도 잘 연결되어 있는 것 같습니다. 그러면 reducer 쪽이 문제란 소린데, 정상적으로 action 객체 받아와서 그냥 state에 action.payload를 넣어주기만 하면 되는데 안된단 말이죠? ;; 왜 그럴까요?... 정말 궁금합니다. 깃헙 주소입니닫 https://github.com/BomUlUL/NodeReact 위 사진들로만 보셔도 될 것 같습니다!
선생님, 강의 잘 듣고 있습니다. 다름이 아니라, get_train_valid_test_set 함수에서 이해가 잘 되지 않는 부분이 있어서 질문을 드립니다. 특히 검증 데이터에 대해 train_test_split 내장함수를 사용하는 이유는 말그대로 훈련셋과 테스트셋을 나누기 위함인데 (X_train,X_test,y_train,y_test)이렇게요 그런데 왜 좌항에서는 val_images, val_oh_labels로 각각 검증셋에 대해 return값이 전달되는 것인지 이해가 되지 않습니다. 감사합니다. def get_train_valid_test_set(train_images,train_labels,test_images,test_labels,valid_size=0.15,random_state=2021): train_images,train_oh_labels=get_preprocessed_ohe(train_images,train_labels) test_images,test_oh_labels=get_preprocessed_ohe(test_images,test_labels) #검증 데이터 tr_images,val_images,tr_oh_labels,val_oh_labels = train_test_split(train_images,train_oh_labels,test_size=valid_size,random_state=2021) return (tr_images,tr_oh_labels),(val_images,val_oh_labels),(test_images,test_oh_labels)
이전 수업에서는 비교연산할때 Comparable 상속받아서 compareto()라는 함수를 만들고 Collections.sort()에서 함수를 적용해 비교를 했는데 이번 수업에서는 따로 오버라이드 하지 않고 바로 Arrays.sort()를 사용해서 비교 연산을 하나요?? 가능한지 궁금합니다.
현재 강의에서 AppV1Config클래스를 스프링빈으로 등록하기 위해 @Import(AppV1Config.class)코드를 넣어줘야한다고 알려주셨습니다. 그런데 예전강의에서 @Configuration안에는 @Component가 선언되어 있어 해당 클래스는 자동으로 스프링빈으로 선언된다고 알려주셨는데요!! 그렇다면 @Import(AppV1Config.class)코드가 없이 @SpringBootApplication(scanBasePachages)가 지정되어 있지않다면 AppV1Config클래스는 자동으로 스프링빈으로 등록되는게 맞나요??
안녕하세요 Member, Rental, Movie 등의 클래스에서 캡슐화하는 방법에 대해서 말씀해주셨는데 이것은 VO(불변) 나 entity 클래스의 경우에만 가능한건가요? JPA 환경이 아닌 mybatis 를 사용하면 많은 경우 단순 setter, getter 형태의 dto 만을 사용하여 개발을 진행하게 되는데 이런 경우 dto 에 getFrequentRenterPoints() 와 같은 메소드를 만들어서 사용하는 것은 별로 좋지 않은 방법일까요? dto 는 단순 setter, getter 외에는 로직이 들어가서는 안된다라는 글을 어디선가 본 것 같아서요
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요. 1. 강의 내용과 관련된 질문을 남겨주세요. 2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요. (자주 하는 질문 링크: https://bit.ly/3fX6ygx) 3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요. (질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG) 질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요. ========================================= [질문 템플릿] 1. 강의 내용과 관련된 질문인가요? (예/아니오) 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오) [질문 내용] 여기에 질문 내용을 남겨주세요. 예를들어 Item 클래스에서 Boolean AA 으로 선언하면 addForm 에서 히든필드에 name=_AA 처럼 사용하면 되는건가요?
안녕하세요. 강의 감사히 잘 듣고 있습니다. 제목처럼 저 부분에서 계속 오류가 생기고 있습니다.. 도움 요청 드립니다. package hello.hellospring.service ; import hello.hellospring.domain.Member ; import hello.hellospring.repository.MemberRepository ; import org.junit.jupiter.api. Test ; import org.springframework.beans.factory.annotation. Autowired ; import org.springframework.boot.test.context. SpringBootTest ; import org.springframework.transaction.annotation. Transactional ; import static org.assertj.core.api.Assertions. assertThat ; import static org.junit.jupiter.api.Assertions. assertThrows ; @SpringBootTest @Transactional class MemberServiceIntegrationTest { @Autowired MemberService memberService ; @Autowired MemberRepository memberRepository ; @Test void 회원가입 () { //given Member member = new Member() ; member.setName( "hello" ) ; //when Long saveId = memberService .join(member) ; //then Member findMember = memberService .findOne(saveId).get() ; assertThat (member.getName()).isEqualTo(findMember.getName()) ; } @Test public void 중복 _ 회원 _ 예외 () { //given Member member1 = new Member() ; member1.setName( "spring" ) ; Member member2 = new Member() ; member2.setName( "spring" ) ; //when memberService .join(member1) ; IllegalStateException e = assertThrows (IllegalStateException. class, () -> memberService .join( member2 )) ; assertThat (e.getMessage()).isEqualTo( " 이미 존재하는 회원입니다 ." ) ; //then } } -------------여기서부터 에러코드------------------- 2021-11-15 20:59:44.473 INFO 13448 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2021-11-15 20:59:44.598 INFO 13448 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2021-11-15 20:59:44.607 INFO 13448 --- [ main] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@35a9782c testClass = MemberServiceIntegrationTest, testInstance = hello.hellospring.service.MemberServiceIntegrationTest@3fcbc766, testMethod = 중복_회원_예외@MemberServiceIntegrationTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@70a36a66 testClass = MemberServiceIntegrationTest, locations = '{}', classes = '{class hello.hellospring.HelloSpringApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@7fb4f2a9, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@465232e9, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@660acfb, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@1f9f6368, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@4f49f6af, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@15b3e5b], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true, 'org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]]; transaction manager [org.springframework.jdbc.support.JdbcTransactionManager@28cd2c2]; rollback [true] 2021-11-15 20:59:45.150 INFO 13448 --- [ main] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@35a9782c testClass = MemberServiceIntegrationTest, testInstance = hello.hellospring.service.MemberServiceIntegrationTest@3fcbc766, testMethod = 중복_회원_예외@MemberServiceIntegrationTest, testException = org.opentest4j.AssertionFailedError: Expected java.lang.IllegalStateException to be thrown, but nothing was thrown., mergedContextConfiguration = [WebMergedContextConfiguration@70a36a66 testClass = MemberServiceIntegrationTest, locations = '{}', classes = '{class hello.hellospring.HelloSpringApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@7fb4f2a9, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@465232e9, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@660acfb, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@1f9f6368, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@4f49f6af, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@15b3e5b], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true, 'org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]] org.opentest4j.AssertionFailedError: Expected java.lang.IllegalStateException to be thrown, but nothing was thrown. at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:71) at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:37) at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3007) at hello.hellospring.service.MemberServiceIntegrationTest.중복_회원_예외(MemberServiceIntegrationTest.java:45) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:688) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:210) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:206) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:131) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:65) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:71) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
dcokerfile.dev 에는 CMD ""npm" "run" "start" 이라고 되어 있고 travis.yml 에는 script에서 npm run test 라고 되어 있는데 start는 개발환경에서 쓰는 명령어이고 test는 테스트시에 쓰는 명령어로 알고 있는데 해당 dockerfile로 이미지를 만들어서 컨테이너를 만들면 dockerfile에 있는 CMD 명령문ㅇ 대신에 yml. 파일에 있는 scrpit가 덮어쓰게 되는것인가요??
[질문 내용] 마이바티스의 경우 별도로 구현체를 만들지 않고 사용했는데 이 경우 config 파일을 통한 조립이 불가할까요?? 스프링부트 설정이랑 인터페이스만 갖고 마이바티스를 연결하여 사용했었는데 SpringConfig에서 repository 명만 바꿔주며 사용하기 위해서는 반드시 구현체를 정의할 필요가 있는지 궁금해서 질문드립니다!